Update build-macos.yml

This commit is contained in:
Anirudh Sevugan 2025-08-07 20:53:39 -05:00 committed by GitHub
parent 4759073cc4
commit 3eb2a7c7fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ jobs:
echo "Ad-hoc signing complete for all bundles." echo "Ad-hoc signing complete for all bundles."
working-directory: simpliplay working-directory: simpliplay
- name: Create DMG installers - name: Create custom DMG installers
run: | run: |
# --- Set up variables --- # --- Set up variables ---
APP_NAME="SimpliPlay" APP_NAME="SimpliPlay"
@ -73,7 +73,7 @@ jobs:
open open
set position of item "%s.app" to {150, 150} set position of item "%s.app" to {150, 150}
set position of item "Applications" to {450, 150} set position of item "Applications" to {450, 150}
set background picture of container window to file ".background:%s" set background picture of container window to file POSIX file "%s"
set current view of container window to icon view set current view of container window to icon view
set toolbar visible of container window to false set toolbar visible of container window to false
set statusbar visible of container window to false set statusbar visible of container window to false
@ -82,7 +82,7 @@ jobs:
delay 5 delay 5
close close
end tell end tell
end tell' "$volume_name" "$APP_NAME" "$BACKGROUND_IMAGE" | osascript end tell' "$volume_name" "$APP_NAME" "$MOUNT_POINT/.background/$BACKGROUND_IMAGE" | osascript
hdiutil detach "$MOUNT_POINT" hdiutil detach "$MOUNT_POINT"
hdiutil convert "$temp_dmg_name" -format UDRW -ov -o "$dmg_name" hdiutil convert "$temp_dmg_name" -format UDRW -ov -o "$dmg_name"