Adjust DMG default icon placement

This commit is contained in:
Haitao Pan 2026-03-25 14:23:12 +08:00
parent 24c038d732
commit bc30a02151

View File

@ -12,8 +12,8 @@ set -euo pipefail
# DMG_BACKGROUND_SMALL default: assets/dmg-background-small.png (recommended)
# DMG_WINDOW_BOUNDS default: "400 100 900 420" (500x320)
# DMG_ICON_SIZE default: 128
# DMG_APP_POS default: "125 160"
# DMG_APPS_POS default: "375 160"
# DMG_APP_POS default: "375 92"
# DMG_APPS_POS default: "375 228"
# SKIP_DMG_STYLE=1 skip Finder styling
# DMG_EXTRA_SECTORS extra sectors to keep when shrinking RW image (default: 2048)
@ -43,8 +43,8 @@ DMG_BACKGROUND_PATH="${DMG_BACKGROUND_PATH:-$ROOT_DIR/assets/dmg-background.png}
DMG_WINDOW_BOUNDS="${DMG_WINDOW_BOUNDS:-400 100 900 420}"
DMG_ICON_SIZE="${DMG_ICON_SIZE:-128}"
DMG_APP_POS="${DMG_APP_POS:-125 160}"
DMG_APPS_POS="${DMG_APPS_POS:-375 160}"
DMG_APP_POS="${DMG_APP_POS:-375 92}"
DMG_APPS_POS="${DMG_APPS_POS:-375 228}"
DMG_EXTRA_SECTORS="${DMG_EXTRA_SECTORS:-2048}"
to_applescript_list4() {