Skip to content

Commit

Permalink
DO NOT MERGE: test for appdmg issues
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed May 30, 2023
1 parent 0c31910 commit 92678a5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/package_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ rm "$HELPER_ENTITLEMENTS"
rm "$CLI_ENTITLEMENTS"
rm -rf "$INPUT_COPY"

monitor() {
while [ 1 ]; do
ls -l /Volumes
ls -l /Volumes/UTM || true
diskutil info /dev/disk10s1 || true
sleep 0.05
done
}

if [ "$MODE" == "app-store" ]; then
cp "$SIGNED/UTM.pkg" "$OUTPUT/UTM.pkg"
else
Expand All @@ -120,7 +129,9 @@ else
RESOURCES="/tmp/resources.$$"
cp -r "$BASEDIR/resources" "$RESOURCES"
sed -i '' "s/\/tmp\/signed\/UTM.app/\/tmp\/signed.$$\/UTM.app/g" "$RESOURCES/appdmg.json"
appdmg "$RESOURCES/appdmg.json" "$OUTPUT/UTM.dmg"
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
monitor &
appdmg "$RESOURCES/appdmg.json" "$OUTPUT/UTM.dmg" || true
rm -rf "$RESOURCES"
else
echo "appdmg not found, falling back to non-customized DMG creation"
Expand Down

0 comments on commit 92678a5

Please sign in to comment.