fix(desktop): 补 build:dev 脚本,修复 wails3 dev 启动

wails3 dev 的 DEV 构建走 `npm run build:dev`,而 package.json 只有 build(此前只用过
task build/package,dev 从没跑通)。补 build:dev=vite build --mode development。

注:原生 dev/build 还有个 go.work 坑——desktop 不在工作区,直接 go build 需 GOWORK=off;
且 wails3 generate bindings -clean 会误删已提交 bindings(因模块不在 go.work 解析不到 services)。
可靠的本地跑原生窗口:cd sundynix-desktop && (cd frontend && npm run build) &&
  GOWORK=off CGO_ENABLED=1 go build -tags production -buildvcs=false -o /tmp/jarvis_desktop . && /tmp/jarvis_desktop

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-22 14:39:44 +08:00
parent 2a743a33f6
commit ef2b815bd7
+1
View File
@@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build:dev": "vite build --mode development",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest"