1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 09:50:07 +02:00

Autogenerate a source tarball for every version of every app we build

This commit is contained in:
Ciaran Gultnieks 2011-01-02 23:26:12 +00:00
parent ed9ef09d21
commit d5cc9e2523

View File

@ -23,6 +23,7 @@ import glob
import subprocess
import re
import zipfile
import tarfile
import md5
from xml.dom.minidom import Document
from optparse import OptionParser
@ -145,6 +146,13 @@ for app in apps:
if thisbuild.has_key('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...
p = subprocess.Popen(['ant','release'], cwd=root_dir,
stdout=subprocess.PIPE)