mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update build-macos.yml
This commit is contained in:
parent
3eb2a7c7fd
commit
26a04b8988
7
.github/workflows/build-macos.yml
vendored
7
.github/workflows/build-macos.yml
vendored
@ -50,6 +50,7 @@ jobs:
|
|||||||
# --- Set up variables ---
|
# --- Set up variables ---
|
||||||
APP_NAME="SimpliPlay"
|
APP_NAME="SimpliPlay"
|
||||||
BACKGROUND_IMAGE="dmg-background.png"
|
BACKGROUND_IMAGE="dmg-background.png"
|
||||||
|
BACKGROUND_PATH=$(pwd)/"$BACKGROUND_IMAGE"
|
||||||
|
|
||||||
# --- Function to create a DMG from a signed app bundle ---
|
# --- Function to create a DMG from a signed app bundle ---
|
||||||
create_dmg() {
|
create_dmg() {
|
||||||
@ -64,7 +65,7 @@ jobs:
|
|||||||
hdiutil attach "$temp_dmg_name" -mountpoint "$MOUNT_POINT"
|
hdiutil attach "$temp_dmg_name" -mountpoint "$MOUNT_POINT"
|
||||||
|
|
||||||
mkdir "$MOUNT_POINT/.background"
|
mkdir "$MOUNT_POINT/.background"
|
||||||
cp "$BACKGROUND_IMAGE" "$MOUNT_POINT/.background/"
|
cp "$BACKGROUND_PATH" "$MOUNT_POINT/.background/"
|
||||||
cp -R "$app_path" "$MOUNT_POINT/"
|
cp -R "$app_path" "$MOUNT_POINT/"
|
||||||
ln -s /Applications "$MOUNT_POINT/Applications"
|
ln -s /Applications "$MOUNT_POINT/Applications"
|
||||||
|
|
||||||
@ -73,7 +74,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 POSIX file "%s"
|
set background picture of container window to file POSIX file "/.background/%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 +83,7 @@ jobs:
|
|||||||
delay 5
|
delay 5
|
||||||
close
|
close
|
||||||
end tell
|
end tell
|
||||||
end tell' "$volume_name" "$APP_NAME" "$MOUNT_POINT/.background/$BACKGROUND_IMAGE" | osascript
|
end tell' "$volume_name" "$APP_NAME" "$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"
|
||||||
|
Loading…
Reference in New Issue
Block a user