Tweak error handling in make_osx.
authorCarl Hetherington <cth@carlh.net>
Mon, 21 Oct 2019 16:41:55 +0000 (18:41 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Oct 2019 16:41:55 +0000 (18:41 +0200)
platform/osx/make_dmg.sh

index 93cbd077fde96d2627dc3c53fce53592dab272ae..f5124f2e94f1ae005da76ea33be22252dd5f1a51 100644 (file)
@@ -314,7 +314,6 @@ EOF
     chmod -Rf go-w /Volumes/"$vol_name"/"$appdir"
     sync
 
-    set -e
     hdiutil eject $device
     hdiutil convert -format UDZO $tmp_dmg -imagekey zlib-level=9 -o "$dmg"
     sips -i "$appdir/Contents/Resources/dcpomatic2.icns"
@@ -322,6 +321,8 @@ EOF
     Rez -append "$appdir/Contents/Resources/DCP-o-matic.rsrc" -o "$dmg"
     SetFile -a C "$dmg"
     xattr -c "$dmg"
+
+    set -e
     codesign --verify --verbose --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$dmg"
 
     id=$(xcrun altool --notarize-app -t osx -f "$dmg" --primary-bundle-id $bundle_id -u $APPLE_ID -p $APPLE_PASSWORD --output-format xml | grep -C1 RequestUUID | tail -n 1 | sed -e "s/<string>//g" | sed -e "s/<\/string>//g")