summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)