diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-28 10:19:54 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-28 10:19:54 (GMT) |
commit | 647213f7c9bdc5b60c863ee56302f380869befe7 (patch) | |
tree | b4c2e1afbdb1ba96a5afbe8954435153a77ab12b /Swift/QtUI/SConscript | |
parent | bafe5e6d6386f40f254b5da752545b5f9f41d316 (diff) | |
download | swift-contrib-647213f7c9bdc5b60c863ee56302f380869befe7.zip swift-contrib-647213f7c9bdc5b60c863ee56302f380869befe7.tar.bz2 |
Create a dist target for mac DMG bundling.
Diffstat (limited to 'Swift/QtUI/SConscript')
-rw-r--r-- | Swift/QtUI/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
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) |