diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-08 20:04:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-09 13:45:07 +0100 |
| commit | fafcda9bddf57be0c6cecdcb758c4c56df3c8b16 (patch) | |
| tree | 534e7f437ebd02c697be874abb2f975fbd91757a /platform | |
| parent | fa76c85e0e880edec684e4da5c5477939a3ac78d (diff) | |
OS X multi-app hacks.
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/osx/dcpomatic2.Info.plist.in | 4 | ||||
| -rw-r--r-- | platform/osx/dcpomatic2_batch.Info.plist.in | 34 | ||||
| -rw-r--r-- | platform/osx/dcpomatic2_kdm.Info.plist.in | 4 | ||||
| -rw-r--r-- | platform/osx/dcpomatic2_server.Info.plist.in | 34 | ||||
| -rw-r--r-- | platform/osx/make_dmg.sh | 58 | ||||
| -rw-r--r-- | platform/osx/wscript | 2 |
6 files changed, 129 insertions, 7 deletions
diff --git a/platform/osx/dcpomatic2.Info.plist.in b/platform/osx/dcpomatic2.Info.plist.in index c8c1378a9..de14012ea 100644 --- a/platform/osx/dcpomatic2.Info.plist.in +++ b/platform/osx/dcpomatic2.Info.plist.in @@ -7,9 +7,9 @@ <key>CFBundleExecutable</key> <string>dcpomatic2</string> <key>CFBundleGetInfoString</key> - <string>DCP generator</string> + <string>DCP-o-matic 2</string> <key>CFBundleIconFile</key> - <string>DCP-o-matic.icns</string> + <string>dcpomatic2.icns</string> <key>CFBundleIdentifier</key> <string>com.dcpomatic</string> <key>CFBundleInfoDictionaryVersion</key> diff --git a/platform/osx/dcpomatic2_batch.Info.plist.in b/platform/osx/dcpomatic2_batch.Info.plist.in new file mode 100644 index 000000000..8c07661ac --- /dev/null +++ b/platform/osx/dcpomatic2_batch.Info.plist.in @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>dcpomatic2_batch</string> + <key>CFBundleGetInfoString</key> + <string>DCP-o-matic Batch Converter</string> + <key>CFBundleIconFile</key> + <string>dcpomatic2_batch.icns</string> + <key>CFBundleIdentifier</key> + <string>com.dcpomatic.batch</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>DCP-o-matic 2 Batch Converter</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersions</key> + <string>@VERSION@</string> + <key>CFBundleSignature</key> + <string>DOMC</string> + <key>CFBundleVersion</key> + <string>@VERSION@</string> + <key>LSUIElement</key> + <string>0</string> + <key>NSMainNibFile</key> + <string>MainMenu</string> + <key>NSPrincipalClass</key> + <string>NSApplication</string> +</dict> +</plist> diff --git a/platform/osx/dcpomatic2_kdm.Info.plist.in b/platform/osx/dcpomatic2_kdm.Info.plist.in index 5a585a1ae..1d7741bbf 100644 --- a/platform/osx/dcpomatic2_kdm.Info.plist.in +++ b/platform/osx/dcpomatic2_kdm.Info.plist.in @@ -7,9 +7,9 @@ <key>CFBundleExecutable</key> <string>dcpomatic2_kdm</string> <key>CFBundleGetInfoString</key> - <string>DCP KDM creator</string> + <string>DCP-o-matic KDM creator</string> <key>CFBundleIconFile</key> - <string>DCP-o-matic.icns</string> + <string>dcpomatic2_kdm.icns</string> <key>CFBundleIdentifier</key> <string>com.dcpomatic.kdm</string> <key>CFBundleInfoDictionaryVersion</key> diff --git a/platform/osx/dcpomatic2_server.Info.plist.in b/platform/osx/dcpomatic2_server.Info.plist.in new file mode 100644 index 000000000..4c893be40 --- /dev/null +++ b/platform/osx/dcpomatic2_server.Info.plist.in @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>dcpomatic2_server</string> + <key>CFBundleGetInfoString</key> + <string>DCP-o-matic Server</string> + <key>CFBundleIconFile</key> + <string>dcpomatic2.icns</string> + <key>CFBundleIdentifier</key> + <string>com.dcpomatic.server</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>DCP-o-matic 2 Server</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersions</key> + <string>@VERSION@</string> + <key>CFBundleSignature</key> + <string>DOMC</string> + <key>CFBundleVersion</key> + <string>@VERSION@</string> + <key>LSUIElement</key> + <string>0</string> + <key>NSMainNibFile</key> + <string>MainMenu</string> + <key>NSPrincipalClass</key> + <string>NSApplication</string> +</dict> +</plist> diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index 6656a26da..6e1382fef 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -35,6 +35,24 @@ resources_kdm="$approot_kdm/Resources" rm -rf "$WORK/$appdir_kdm" mkdir -p "$WORK/$macos_kdm" +# Server +appdir_server="DCP-o-matic 2 Server.app" +approot_server="$appdir_server/Contents" +libs_server="$approot_server/lib" +macos_server="$approot_server/MacOS" +resources_server="$approot_server/Resources" +rm -rf "$WORK/$appdir_server" +mkdir -p "$WORK/$macos_server" + +# Batch converter +appdir_batch="DCP-o-matic 2 Batch Converter.app" +approot_batch="$appdir_batch/Contents" +libs_batch="$approot_batch/lib" +macos_batch="$approot_batch/MacOS" +resources_batch="$approot_batch/Resources" +rm -rf "$WORK/$appdir_batch" +mkdir -p "$WORK/$macos_batch" + relink="dcpomatic" function universal_copy { @@ -65,8 +83,9 @@ function universal_copy_lib { universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2 "$WORK/$macos" universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_cli "$WORK/$macos" universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_server_cli "$WORK/$macos" -universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_batch "$WORK/$macos" universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_kdm "$WORK/$macos_kdm" +universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_server "$WORK/$macos_server" +universal_copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_batch "$WORK/$macos_batch" universal_copy $ROOT src/dcpomatic/build/src/lib/libdcpomatic2.dylib "$WORK/$libs" universal_copy $ROOT src/dcpomatic/build/src/wx/libdcpomatic2-wx.dylib "$WORK/$libs" universal_copy_lib $ROOT libcxml "$WORK/$libs" @@ -133,7 +152,15 @@ universal_copy_lib $ENV libicuuc "$WORK/$libs" relink=`echo $relink | sed -e "s/\+//g"` -for obj in "$WORK/$macos/dcpomatic2" "$WORK/$macos/dcpomatic2_batch" "$WORK/$macos/dcpomatic2_server" "$WORK/$macos_kdm/dcpomatic2_kdm" "$WORK/$macos/dcpomatic2_cli" "$WORK/$macos/dcpomatic2_server_cli" "$WORK/$macos/ffprobe" "$WORK/$libs/"*.dylib; do +for obj in \ + "$WORK/$macos/dcpomatic2" \ + "$WORK/$macos/dcpomatic2_cli" \ + "$WORK/$macos/dcpomatic2_server_cli" \ + "$WORK/$macos_kdm/dcpomatic2_kdm" \ + "$WORK/$macos_server/dcpomatic2_server" \ + "$WORK/$macos_batch/dcpomatic2_batch" \ + "$WORK/$macos/ffprobe" \ + "$WORK/$libs/"*.dylib; do deps=`otool -L "$obj" | awk '{print $1}' | egrep "($relink)" | egrep "($ENV|$ROOT|boost|libicu)"` changes="" for dep in $deps; do @@ -149,7 +176,10 @@ for obj in "$WORK/$macos/dcpomatic2" "$WORK/$macos/dcpomatic2_batch" "$WORK/$mac done cp $ROOT/32/src/dcpomatic/build/platform/osx/dcpomatic2.Info.plist "$WORK/$approot/Info.plist" -cp $ROOT/32/src/dcpomatic/graphics/dcpomatic.icns "$WORK/$resources/DCP-o-matic.icns" +cp $ROOT/32/src/dcpomatic/graphics/dcpomatic2.icns "$WORK/$resources/dcpomatic2.icns" +cp $ROOT/32/src/dcpomatic/graphics/dcpomatic2_kdm.icns "$WORK/$resources/dcpomatic2_kdm.icns" +cp $ROOT/32/src/dcpomatic/graphics/dcpomatic2_server.icns "$WORK/$resources/dcpomatic2_server.icns" +cp $ROOT/32/src/dcpomatic/graphics/dcpomatic2_batch.icns "$WORK/$resources/dcpomatic2_batch.icns" cp $ROOT/32/src/dcpomatic/graphics/colour_conversions.png "$WORK/$resources" cp $ROOT/32/src/dcpomatic/graphics/defaults.png "$WORK/$resources" cp $ROOT/32/src/dcpomatic/graphics/kdm_email.png "$WORK/$resources" @@ -192,6 +222,28 @@ ln -s "../../DCP-o-matic 2.app/Contents/Resources" "$WORK/$resources_kdm" cp $ROOT/32/src/dcpomatic/build/platform/osx/dcpomatic2_kdm.Info.plist "$WORK/$approot_kdm/Info.plist" cp -a "$WORK/$appdir_kdm" $WORK/$vol_name +# Server +appdir_server="DCP-o-matic 2 Server.app" +approot_server="$appdir_server/Contents" +libs_server="$approot_server/lib" +macos_server="$approot_server/MacOS" +resources_server="$approot_server/Resources" +ln -s "../../DCP-o-matic 2.app/Contents/lib" "$WORK/$libs_server" +ln -s "../../DCP-o-matic 2.app/Contents/Resources" "$WORK/$resources_server" +cp $ROOT/32/src/dcpomatic/build/platform/osx/dcpomatic2_server.Info.plist "$WORK/$approot_server/Info.plist" +cp -a "$WORK/$appdir_server" $WORK/$vol_name + +# Batch converter +appdir_batch="DCP-o-matic 2 Batch Converter.app" +approot_batch="$appdir_batch/Contents" +libs_batch="$approot_batch/lib" +macos_batch="$approot_batch/MacOS" +resources_batch="$approot_batch/Resources" +ln -s "../../DCP-o-matic 2.app/Contents/lib" "$WORK/$libs_batch" +ln -s "../../DCP-o-matic 2.app/Contents/Resources" "$WORK/$resources_batch" +cp $ROOT/32/src/dcpomatic/build/platform/osx/dcpomatic2_batch.Info.plist "$WORK/$approot_batch/Info.plist" +cp -a "$WORK/$appdir_batch" $WORK/$vol_name + rm -f $tmp_dmg "$dmg" hdiutil create -srcfolder $WORK/$vol_name -volname $vol_name -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW -size $DMG_SIZE $tmp_dmg attach=$(hdiutil attach -readwrite -noverify -noautoopen $tmp_dmg) diff --git a/platform/osx/wscript b/platform/osx/wscript index c1f2351dd..f2248fcb5 100644 --- a/platform/osx/wscript +++ b/platform/osx/wscript @@ -1,3 +1,5 @@ def build(bld): obj = bld(features='subst', source='dcpomatic2.Info.plist.in', target='dcpomatic2.Info.plist', version=bld.env.VERSION) obj = bld(features='subst', source='dcpomatic2_kdm.Info.plist.in', target='dcpomatic2_kdm.Info.plist', version=bld.env.VERSION) + obj = bld(features='subst', source='dcpomatic2_server.Info.plist.in', target='dcpomatic2_server.Info.plist', version=bld.env.VERSION) + obj = bld(features='subst', source='dcpomatic2_batch.Info.plist.in', target='dcpomatic2_batch.Info.plist', version=bld.env.VERSION) |
