From: Carl Hetherington Date: Thu, 3 Oct 2019 17:47:39 +0000 (+0200) Subject: Add xattr command to remove things from .apps that codesign does not like. X-Git-Tag: v2.15.21~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c701c9276b25ab8267f4cefe21a4303a3a54a372 Add xattr command to remove things from .apps that codesign does not like. It says: resource fork, Finder information, or similar detritus not allowed I'm not sure why this suddenly became necessary. Forward-ported from 5b1c0d804847978e32bc4ce4de43f148c366f9da in master. --- diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index d7aaade8c..5b9f187f1 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -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"