summaryrefslogtreecommitdiff
path: root/rbutil
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 /rbutil
parentf053b0d6066291bf865a622bd4969cd782a2deee (diff)
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
Diffstat (limited to 'rbutil')
-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":
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)