From 98da08e9a115f2ca2caf39f0e2c41ac768502567 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Fri, 25 Sep 2026 19:09:01 -0700 Subject: [PATCH] oskiewar mac: re-register the app on install so the Dock shows its icon Installing over the old bundle left LaunchServices and the Dock holding a stale (blank) icon; touching the bundle and running lsregister -f makes the Dock draw the current Oskiewar.icns. Co-Authored-By: Claude Opus 5.5 --- xbox/tools/build-macos-app.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xbox/tools/build-macos-app.sh b/xbox/tools/build-macos-app.sh index e2bde60e95..d03584e30d 100755 --- a/xbox/tools/build-macos-app.sh +++ b/xbox/tools/build-macos-app.sh @@ -44,6 +44,11 @@ if [ "$install" -eq 1 ]; then destination="/Applications/oskiewar.app" rm -rf "$destination" ditto "$app" "$destination" + # Replacing the bundle in place leaves LaunchServices and the Dock holding + # the old icon (a blank tile after the first install); touch it and + # re-register so the Dock redraws the current Oskiewar.icns. + touch "$destination" + /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f "$destination" >/dev/null 2>&1 || true dock_snapshot=$(mktemp "${TMPDIR:-/tmp}/oskiewar-dock.XXXXXX.plist") dock_found=0 if defaults export com.apple.dock "$dock_snapshot" >/dev/null 2>&1; then -- 2.51.2