summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-13 11:50:44 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-13 12:24:29 (GMT)
commit1f6119ec3e29e27442eaf623f3b1d091cf6ef5ec (patch)
treeb3ac9189d0b7cfe0efa0bcaa4b4100feaa05edb9 /Swift
parentb6374b7ae064e689924a88b398ca3eb9ed0a379e (diff)
downloadswift-1f6119ec3e29e27442eaf623f3b1d091cf6ef5ec.zip
swift-1f6119ec3e29e27442eaf623f3b1d091cf6ef5ec.tar.bz2
Add Mac App bundle creation tool.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/SConscript13
1 files changed, 3 insertions, 10 deletions
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript
index 5615819..700eb81 100644
--- a/Swift/QtUI/SConscript
+++ b/Swift/QtUI/SConscript
@@ -15,15 +15,6 @@ def generateDefaultTheme(env, target, source) :
output.write("</qresource>")
output.write("</RCC>")
-def createAppBundle(env, target, source) :
- target = target[0].abspath
- source = source[0].abspath
- os.makedirs(target + "/Contents/MacOS")
- Execute(Copy(target + "/Contents/MacOS", source))
- pkgInfo = open(target + "/Contents/PkgInfo", "w")
- pkgInfo.write("APPL\77\77\77\77")
- pkgInfo.close()
-
def buildWindowsBundle(env, target, source) :
sources = source
if not os.path.exists(target[0].abspath) :
@@ -102,7 +93,9 @@ myenv.Qrc("DefaultTheme.qrc")
myenv.Qrc("Swift.qrc")
if env["PLATFORM"] == "darwin" :
- myenv.Command("Swift.app", "Swift", createAppBundle)
+ myenv.AppBundle("Swift", resources = [
+ "../resources/MacOSX/Swift.icns"
+ ])
if env["PLATFORM"] == "win32" :
if "dist" in COMMAND_LINE_TARGETS or env.GetOption("clean") :