projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing nossl builds
[quassel.git]
/
scripts
/
build
/
macosx_makebundle.py
diff --git
a/scripts/build/macosx_makebundle.py
b/scripts/build/macosx_makebundle.py
index
a577fbd
..
8ac4396
100755
(executable)
--- a/
scripts/build/macosx_makebundle.py
+++ b/
scripts/build/macosx_makebundle.py
@@
-14,6
+14,7
@@
# Imports
# ==============================
import os
# Imports
# ==============================
import os
+import os.path
import sys
# ==============================
import sys
# ==============================
@@
-28,9
+29,13
@@
if len(sys.argv) < 4:
BUNDLE_NAME= "Quassel Client"
EXE_NAME = "quasselclient"
else:
BUNDLE_NAME= "Quassel Client"
EXE_NAME = "quasselclient"
else:
- BUNDLE_NAME = sys.argv[2]
EXE_NAME = sys.argv[3]
EXE_NAME = sys.argv[3]
-CONTENTS_DIR = BUNDLE_NAME + ".app/Contents/"
+ BUNDLE_NAME = sys.argv[2]
+
+# make the dir of the exe the target dir
+if(os.path.dirname(EXE_NAME)):
+ CONTENTS_DIR = os.path.dirname(EXE_NAME) + "/"
+CONTENTS_DIR += BUNDLE_NAME + ".app/Contents/"
BUNDLE_VERSION = "0.3.0"
ICON_FILE = "pics/quassel.icns"
BUNDLE_VERSION = "0.3.0"
ICON_FILE = "pics/quassel.icns"
@@
-50,7
+55,6
@@
def createPlist(bundleName, iconFile, bundleVersion):
templateFile = file(SOURCE_DIR + "/scripts/build/Info.plist", 'r')
template = templateFile.read()
templateFile.close()
templateFile = file(SOURCE_DIR + "/scripts/build/Info.plist", 'r')
template = templateFile.read()
templateFile.close()
- print
plistFile = file(CONTENTS_DIR + "Info.plist", 'w')
plistFile.write(template % {"BUNDLE_NAME" : bundleName,
plistFile = file(CONTENTS_DIR + "Info.plist", 'w')
plistFile.write(template % {"BUNDLE_NAME" : bundleName,