summaryrefslogtreecommitdiffstats
path: root/utils/common/deploy-rbutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common/deploy-rbutil.py')
-rwxr-xr-xutils/common/deploy-rbutil.py36
1 files changed, 21 insertions, 15 deletions
diff --git a/utils/common/deploy-rbutil.py b/utils/common/deploy-rbutil.py
index b5657b9677..27c6969e84 100755
--- a/utils/common/deploy-rbutil.py
+++ b/utils/common/deploy-rbutil.py
@@ -17,7 +17,6 @@
#
import deploy
-import sys
deploy.program = "RockboxUtility"
deploy.project = "rbutil/rbutilqt/rbutilqt.pro"
@@ -48,22 +47,29 @@ deploy.bundlecopy = {
"icons/rbutilqt.icns" : "Contents/Resources/",
"Info.plist" : "Contents/"
}
-# Windows nees some special treatment. Differentiate between program name
-# and executable filename.
-if sys.platform == "win32":
- deploy.progexe = "Release/" + deploy.program + ".exe"
- deploy.make = "mingw32-make"
-elif sys.platform == "darwin":
- deploy.progexe = deploy.program + ".app"
- # OS X 10.6 defaults to gcc 4.2. Building universal binaries that are
- # compatible with 10.4 requires using gcc-4.0.
- if not "QMAKESPEC" in deploy.environment:
- deploy.environment["QMAKESPEC"] = "macx-g++40"
-else:
- deploy.progexe = deploy.program
+deploy.progexe = {
+ "win32" : "release/RockboxUtility.exe",
+ "darwin" : "RockboxUtility.app",
+ "linux" : "RockboxUtility"
+}
+# OS X 10.6 defaults to gcc 4.2. Building universal binaries that are
+# compatible with 10.4 requires using gcc-4.0.
+deploy.qmakespec = {
+ "win32" : "",
+ "darwin" : "macx-g++40",
+ "linux" : ""
+}
+deploy.make = {
+ "win32" : "mingw32-make",
+ "darwin" : "make",
+ "linux" : "make"
+}
+
# 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.
-deploy.programfiles = [ deploy.progexe ]
+# progexe will get added automatically.
+deploy.programfiles = [ ]
+deploy.nsisscript = ""
deploy.deploy()