deploy-release: Make upx part optional and disable it.

upx doesn't like the Rockbox Utility binaries built with MinGW's gcc 4.5.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26794 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2010-06-11 20:02:59 +00:00
parent f053b0d606
commit 1727c9918f

View file

@ -79,6 +79,8 @@ elif sys.platform == "darwin":
else:
progexe = program
# all files of the program. Will get put into an archive after building
# (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg.
programfiles = [ progexe ]
svnserver = "svn://svn.rockbox.org/rockbox/"
@ -103,6 +105,9 @@ svnpaths = [ "rbutil/",
"tools/voicefont.h",
"tools/wavtrim.c",
"tools/sapi_voice.vbs" ]
# set this to true to run upx on the resulting binary, false to skip this step.
# only used on w32.
useupx = False
# == Functions ==
def usage(myself):
@ -483,9 +488,10 @@ def main():
tempclean(workfolder, cleanup and not keeptemp)
sys.exit(1)
if sys.platform == "win32":
if not upxfile(sourcefolder) == 0:
tempclean(workfolder, cleanup and not keeptemp)
sys.exit(1)
if useupx == True:
if not upxfile(sourcefolder) == 0:
tempclean(workfolder, cleanup and not keeptemp)
sys.exit(1)
archive = zipball(ver, sourcefolder)
elif sys.platform == "darwin":
archive = macdeploy(ver, sourcefolder)