chore(desktop): drop dead cp/gen-icns.sh from dev and prebuild

build/icon.png and build/icon.icns are now committed pre-rendered
artefacts produced by scripts/gen-icons.mjs. The cp lines that seeded
gen-icns.sh and the gen-icns.sh invocation itself are no longer needed.
Preserves the macOS dock-icon override (cp into electron.icns) — that
is independent of how the icns is generated.
This commit is contained in:
Jannis Braun
2026-04-27 14:36:35 +02:00
parent 5635fd88f1
commit ff67a792b9
+1 -2
View File
@@ -11,8 +11,7 @@
"main": "dist/main.js",
"scripts": {
"build:ts": "tsc",
"dev": "mkdir -p build && cp ../../icon.png build/icon.png && bash scripts/gen-icns.sh && cp build/icon.icns $(find ../../node_modules -path '*/electron/dist/Electron.app/Contents/Resources/electron.icns' 2>/dev/null | head -1) 2>/dev/null; tsc && electron .",
"prebuild": "mkdir -p build && cp ../../icon.png build/icon.png",
"dev": "cp build/icon.icns $(find ../../node_modules -path '*/electron/dist/Electron.app/Contents/Resources/electron.icns' 2>/dev/null | head -1) 2>/dev/null; tsc && electron .",
"build": "tsc && electron-builder",
"build:all": "tsc && electron-builder --mac --win --linux --arm64 --x64",
"clean": "rm -rf dist dist-electron",