Revert "Remove .dmg signing; I think we can't do this on OS X 10.10: does it matter?"
authorCarl Hetherington <cth@carlh.net>
Tue, 13 Mar 2018 00:59:52 +0000 (00:59 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Mar 2018 00:59:52 +0000 (00:59 +0000)
Put it back so we can try it on High Sierra.

This reverts commit 1db0841b77968658efbbc9fba193af19d0a49a8a.

platform/osx/make_dmg.sh

index 729f366..682f24e 100644 (file)
@@ -220,6 +220,11 @@ function make_dmg {
     DeRez -only icns "$appdir/Contents/Resources/dcpomatic2.icns" > "$appdir/Contents/Resources/DCP-o-matic.rsrc"
     Rez -append "$appdir/Contents/Resources/DCP-o-matic.rsrc" -o "$dmg"
     SetFile -a C "$dmg"
+    codesign --verify --verbose --sign "Developer ID Installer: Carl Hetherington (R82DXSR997)" "$dmg"
+    if [ "$?" != "0" ]; then
+       echo "Failed to sign .dmg"
+       exit 1
+    fi
     rm $tmp_dmg
     rm -rf $vol_name
 }