From 1727c9918fc912ea0031a9cf4bc0953347a1ceab Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 11 Jun 2010 20:02:59 +0000 Subject: 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 --- rbutil/rbutilqt/deploy-release.py | 12 +++++++++--- 1 file 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) -- cgit v1.2.3