Add xattr command to remove things from .apps that codesign does not like.
[dcpomatic.git] / platform / osx / make_dmg.sh
index d7aaade8cbe6f53a1a3ee3107d5ec9cbcfb9a30a..5b9f187f1a9cb9eb5568999602e801d500391607 100644 (file)
@@ -244,6 +244,7 @@ EOF
     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"
+    xattr -c "$dmg"
     codesign --verify --verbose --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$dmg"
     if [ "$?" != "0" ]; then
        echo "Failed to sign .dmg"