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:
@@ -11,8 +11,7 @@
|
|||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:ts": "tsc",
|
"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 .",
|
"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 .",
|
||||||
"prebuild": "mkdir -p build && cp ../../icon.png build/icon.png",
|
|
||||||
"build": "tsc && electron-builder",
|
"build": "tsc && electron-builder",
|
||||||
"build:all": "tsc && electron-builder --mac --win --linux --arm64 --x64",
|
"build:all": "tsc && electron-builder --mac --win --linux --arm64 --x64",
|
||||||
"clean": "rm -rf dist dist-electron",
|
"clean": "rm -rf dist dist-electron",
|
||||||
|
|||||||
Reference in New Issue
Block a user