if [ `uname -s` == "Darwin" ]; then
# Convert OS X icons using OS X-only iconutil
- iconutil --convert icns --output dcpomatic.icns dcpomatic.iconset
+ for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch; do
+ iconutil --convert icns --output $p.icns $p.iconset
+ done
else
INKSCAPE="inkscape -z -C -e"
# OS X application icons
- mkdir -p dcpomatic.iconset
for r in 16 32 128 256 512; do
- $INKSCAPE dcpomatic.iconset/icon_$rx$r.png dcpomatic2.svg -w $r -h $r dcpomatic2.svg
- $INKSCAPE dcpomatic.iconset/icon_$rx$r@2x.png -w $r -h $r dcpomatic2.svg
+ for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch; do
+ mkdir -p $p.iconset
+ $INKSCAPE $p.iconset/icon_$rx$r.png -w $r -h $r $p.svg
+ $INKSCAPE $p.iconset/icon_$rx$r@2x.png -w $r -h $r $p.svg
+ done
done
# Linux application icons
for r in 16 22 32 48 64 128 256 512; do
mkdir -p $r
for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch; do
- $INKSCAPE $r/$p.png $p.svg -w $r -h $r
+ $INKSCAPE $r/$p.png $p.svg -w $r -h $r
done
done
-
+
# Windows application icons
for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch; do
icotool -c -o $p.ico 48/$p.png
icotool -c -o dcpomatic2_server_small.ico dcpomatic2_server_small.png
$INKSCAPE dcpomatic.png dcpomatic2.svg -w 400 -h 286
convert dcpomatic.png dcpomatic.bmp
-
+
# Preferences icons (all platforms)
# servers.png does not have an SVG version
for i in colour_conversions defaults kdm_email keys tms; do
<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>
--- /dev/null
+<?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>
<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>
--- /dev/null
+<?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>
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 {
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"
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
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"
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)
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)