summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/.gitignore1
-rw-r--r--Swift/QtUI/SConscript7
2 files changed, 7 insertions, 1 deletions
diff --git a/Swift/QtUI/.gitignore b/Swift/QtUI/.gitignore
index b776b0d..379d4f5 100644
--- a/Swift/QtUI/.gitignore
+++ b/Swift/QtUI/.gitignore
@@ -1,2 +1,3 @@
Swift
BuildVersion.h
+Swift-*.dmg
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript
index b7eefaf..77bc8f8 100644
--- a/Swift/QtUI/SConscript
+++ b/Swift/QtUI/SConscript
@@ -107,7 +107,12 @@ if env["PLATFORM"] == "darwin" :
frameworks = []
if env["HAVE_SPARKLE"] :
frameworks.append(env["SPARKLE_FRAMEWORK"])
- myenv.AppBundle("Swift", version = env["SWIFT_VERSION"], resources = ["../resources/MacOSX/Swift.icns"], frameworks = frameworks)
+ app = myenv.AppBundle("Swift", version = env["SWIFT_VERSION"], resources = ["../resources/MacOSX/Swift.icns"], frameworks = frameworks)
+ if "dist" in COMMAND_LINE_TARGETS :
+ myenv.Command(["Swift-${SWIFT_VERSION}.dmg"], [app], [
+ "$QTDIR/bin/macdeployqt $SOURCE -dmg",
+ Move("$TARGET", "$SOURCE.dir/Swift.dmg")
+ ])
if env.get("SWIFT_INSTALLDIR", "") :
env.Install(os.path.join(env["SWIFT_INSTALLDIR"], "bin"), swiftProgram)