feat: add custom app icon replacement for macOS builds

This commit is contained in:
Andy Dixon
2026-05-21 13:35:39 +01:00
parent 0b6f611110
commit 1ea24bf7fa
3 changed files with 35 additions and 26 deletions
+11
View File
@@ -97,6 +97,17 @@ build() {
else
wails build -ldflags "$(build_ldflags "${version}")"
fi
# Replace Wails-generated icon with custom app icon on macOS.
if [[ "$OSTYPE" == darwin* ]]; then
local app_bundle="build/bin/nexus-terminal.app"
local custom_icns="build/darwin/AppIcon.icns"
if [ -d "$app_bundle" ] && [ -f "$custom_icns" ]; then
cp "$custom_icns" "$app_bundle/Contents/Resources/iconfile.icns"
log "Replaced app icon with custom AppIcon.icns"
fi
fi
log "Build complete: build/bin/"
}