summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-11 20:02:59 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-11 20:02:59 +0000
commit1727c9918fc912ea0031a9cf4bc0953347a1ceab (patch)
tree06ce15be02a6e7163569cb9cd86ad17e2fdccb57
parentf053b0d6066291bf865a622bd4969cd782a2deee (diff)
downloadrockbox-1727c9918fc912ea0031a9cf4bc0953347a1ceab.tar.gz
rockbox-1727c9918fc912ea0031a9cf4bc0953347a1ceab.zip
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
-rwxr-xr-xrbutil/rbutilqt/deploy-release.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py
index 4543b67c8d..f7c61f8b5e 100755
--- a/rbutil/rbutilqt/deploy-release.py
+++ b/rbutil/rbutilqt/deploy-release.py
@@ -79,6 +79,8 @@ elif sys.platform == "darwin":
79else: 79else:
80 progexe = program 80 progexe = program
81 81
82# all files of the program. Will get put into an archive after building
83# (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg.
82programfiles = [ progexe ] 84programfiles = [ progexe ]
83 85
84svnserver = "svn://svn.rockbox.org/rockbox/" 86svnserver = "svn://svn.rockbox.org/rockbox/"
@@ -103,6 +105,9 @@ svnpaths = [ "rbutil/",
103 "tools/voicefont.h", 105 "tools/voicefont.h",
104 "tools/wavtrim.c", 106 "tools/wavtrim.c",
105 "tools/sapi_voice.vbs" ] 107 "tools/sapi_voice.vbs" ]
108# set this to true to run upx on the resulting binary, false to skip this step.
109# only used on w32.
110useupx = False
106 111
107# == Functions == 112# == Functions ==
108def usage(myself): 113def usage(myself):
@@ -483,9 +488,10 @@ def main():
483 tempclean(workfolder, cleanup and not keeptemp) 488 tempclean(workfolder, cleanup and not keeptemp)
484 sys.exit(1) 489 sys.exit(1)
485 if sys.platform == "win32": 490 if sys.platform == "win32":
486 if not upxfile(sourcefolder) == 0: 491 if useupx == True:
487 tempclean(workfolder, cleanup and not keeptemp) 492 if not upxfile(sourcefolder) == 0:
488 sys.exit(1) 493 tempclean(workfolder, cleanup and not keeptemp)
494 sys.exit(1)
489 archive = zipball(ver, sourcefolder) 495 archive = zipball(ver, sourcefolder)
490 elif sys.platform == "darwin": 496 elif sys.platform == "darwin":
491 archive = macdeploy(ver, sourcefolder) 497 archive = macdeploy(ver, sourcefolder)