feat(build): add icon generation and external binary bundling

- Add scripts to generate application icons in multiple formats (ICO, ICNS, PNG)
- Implement download scripts for uv and Node.js binaries for cross-platform support
- Update build configuration to use new icon resources and bundled binaries
- Remove old loading screen and unused build configurations
- Fix application icon path resolution to use app resources directory
This commit is contained in:
duanshuwen
2026-04-08 07:25:25 +08:00
parent 49a8c0c1d6
commit eb9acae071
132 changed files with 1289 additions and 817920 deletions

View File

@@ -10,7 +10,15 @@
"build": "vite build && electron-builder",
"build:vite": "vite build",
"package": "electron-builder",
"package:win": "vite build && electron-builder --win --publish never",
"icons": "zx scripts/generate-icons.mjs",
"uv:download": "zx scripts/download-bundled-uv.mjs",
"uv:download:mac": "zx scripts/download-bundled-uv.mjs --platform=mac",
"uv:download:win": "zx scripts/download-bundled-uv.mjs --platform=win",
"uv:download:linux": "zx scripts/download-bundled-uv.mjs --platform=linux",
"uv:download:all": "zx scripts/download-bundled-uv.mjs --all",
"node:download:win": "zx scripts/download-bundled-node.mjs --platform=win",
"prep:win-binaries": "pnpm run uv:download:win && pnpm run node:download:win",
"package:win": "pnpm run prep:win-binaries && vite build && electron-builder --win --publish never",
"package:mac": "vite build && electron-builder --mac --publish never",
"package:linux": "vite build && electron-builder --linux --publish never",
"release": "vite build && electron-builder --publish always",
@@ -42,6 +50,8 @@
"esbuild": "^0.27.4",
"fs-extra": "^11.2.0",
"openapi-ts-request": "^1.10.1",
"png2icons": "^2.0.1",
"sharp": "^0.33.0",
"tailwindcss": "^4.1.11",
"typescript": "^5.9.3",
"unplugin-auto-import": "^20.3.0",
@@ -84,7 +94,8 @@
"vue": "^3.5.22",
"vue-i18n": "^11.1.9",
"vue-markdown-render": "^2.3.0",
"vue-router": "^4.5.1"
"vue-router": "^4.5.1",
"zx": "^8.8.5"
},
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c"
}