Add some macOS distribution stuff.
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Mar 2020 22:12:46 +0000 (23:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Mar 2020 22:12:46 +0000 (23:12 +0100)
platform/osx/dcpomatic2_dist.Info.plist.in [new file with mode: 0644]
platform/osx/make_dmg.sh

diff --git a/platform/osx/dcpomatic2_dist.Info.plist.in b/platform/osx/dcpomatic2_dist.Info.plist.in
new file mode 100644 (file)
index 0000000..50a0466
--- /dev/null
@@ -0,0 +1,36 @@
+<?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_dist</string>
+       <key>CFBundleGetInfoString</key>
+       <string>DCP-o-matic 2 Disk Writer</string>
+       <key>CFBundleIconFile</key>
+       <string>dcpomatic2_dist.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>com.dcpomatic.dist</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>DCP-o-matic 2 Disk Writer</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>CFBundleAllowMixedLocalizations</key>
+       <true/>
+       <key>LSUIElement</key>
+       <string>0</string>
+       <key>NSMainNibFile</key>
+       <string>MainMenu</string>
+       <key>NSPrincipalClass</key>
+       <string>NSApplication</string>
+</dict>
+</plist>
index 867200aa74fbc4e73490b618f5670e5ccaedce38..e38de3bfa9c28c5dfb0ad93feda952c47a30b5a7 100644 (file)
@@ -444,3 +444,14 @@ cp $prefix/src/dcpomatic/build/platform/osx/dcpomatic2_playlist.Info.plist "$app
 rl=("$approot/MacOS/dcpomatic2_playlist" "$approot/Frameworks/"*.dylib)
 relink "${rl[@]}"
 make_dmg "$appdir" "DCP-o-matic Playlist Editor" com.dcpomatic.playlist
+
+# DCP-o-matic Disk Writer
+setup "DCP-o-matic 2 Disk Writer.app"
+copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_dist "$approot/MacOS"
+copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_dist_writer "$approot/MacOS"
+cp $prefix/src/dcpomatic/build/platform/osx/dcpomatic2_dist.Info.plist "$approot/Info.plist"
+rl=("$approot/MacOS/dcpomatic2_dist" "$approot/Frameworks/"*.dylib)
+relink "${rl[@]}"
+rl=("$approot/MacOS/dcpomatic2_dist_writer" "$approot/Frameworks/"*.dylib)
+relink "${rl[@]}"
+make_dmg "$appdir" "DCP-o-matic Disk Writer" com.dcpomatic.dist