X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=scripts%2Fbuild%2Fmacosx_makebundle.py;h=8ac439678a5a710a897a7c27bfbd1c19af23419a;hp=72e73793781aee4c2e175c52f94c542620e7928d;hb=b324a124e384bd8c9f54d97c5b5d6a5cc50fd91b;hpb=335e3cf6203327b3ce1ee6e47c09a8139232317c diff --git a/scripts/build/macosx_makebundle.py b/scripts/build/macosx_makebundle.py index 72e73793..8ac43967 100755 --- a/scripts/build/macosx_makebundle.py +++ b/scripts/build/macosx_makebundle.py @@ -14,6 +14,7 @@ # Imports # ============================== import os +import os.path import sys # ============================== @@ -28,12 +29,16 @@ if len(sys.argv) < 4: BUNDLE_NAME= "Quassel Client" EXE_NAME = "quasselclient" else: - BUNDLE_NAME = sys.argv[2] 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.2.0-pre" -ICON_FILE = "src/icons/quassel/quassel.icns" +BUNDLE_VERSION = "0.3.0" +ICON_FILE = "pics/quassel.icns" def createBundle(): try: @@ -50,7 +55,6 @@ def createPlist(bundleName, iconFile, bundleVersion): 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,