mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Autogenerate a source tarball for every version of every app we build
This commit is contained in:
parent
ed9ef09d21
commit
d5cc9e2523
1 changed files with 8 additions and 0 deletions
8
build.py
8
build.py
|
|
@ -23,6 +23,7 @@ import glob
|
||||||
import subprocess
|
import subprocess
|
||||||
import re
|
import re
|
||||||
import zipfile
|
import zipfile
|
||||||
|
import tarfile
|
||||||
import md5
|
import md5
|
||||||
from xml.dom.minidom import Document
|
from xml.dom.minidom import Document
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
@ -145,6 +146,13 @@ for app in apps:
|
||||||
if thisbuild.has_key('rm'):
|
if thisbuild.has_key('rm'):
|
||||||
os.remove(os.path.join(root_dir, thisbuild['rm']))
|
os.remove(os.path.join(root_dir, thisbuild['rm']))
|
||||||
|
|
||||||
|
#Build the source tarball right before we build the relase...
|
||||||
|
tarname = app['id'] + '_' + thisbuild['vercode'] + '_src'
|
||||||
|
tarball = tarfile.open(os.path.join(unsigned_dir,
|
||||||
|
tarname + '.tar.gz'), "w:gz")
|
||||||
|
tarball.add(build_dir, tarname)
|
||||||
|
tarball.close()
|
||||||
|
|
||||||
# Build the release...
|
# Build the release...
|
||||||
p = subprocess.Popen(['ant','release'], cwd=root_dir,
|
p = subprocess.Popen(['ant','release'], cwd=root_dir,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue