Another try at fixing OS X signing.
authorCarl Hetherington <cth@carlh.net>
Sat, 10 Mar 2018 19:42:53 +0000 (19:42 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 10 Mar 2018 19:42:53 +0000 (19:42 +0000)
platform/osx/make_dmg.sh

index 43d0a47..682f24e 100644 (file)
@@ -174,7 +174,7 @@ function make_dmg {
     dmg="$full_name $version.dmg"
     vol_name=DCP-o-matic-$version
 
-    codesign --deep --force --verify --verbose --sign "3rd Party Mac Developer Application: Carl Hetherington (R82DXSR997)" "$appdir"
+    codesign --deep --force --verify --verbose --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$appdir"
     if [ "$?" != "0" ]; then
        echo "Failed to sign .app"
        exit 1
@@ -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
 }