️ perf(dev): 优化 Wails 开发启动与 CI 构建耗时

- 新增 Wails 快速开发启动脚本,跳过非必要构建与绑定生成
- 优化前端依赖安装状态判断,减少重复 npm install
- 固定 CI Wails CLI 版本并增加 node_modules 缓存
- 更新开发文档中的快速启动说明
This commit is contained in:
Syngnat
2026-05-16 11:02:43 +08:00
parent 959f32327d
commit a5be4cc3ae
8 changed files with 240 additions and 8 deletions

View File

@@ -133,7 +133,7 @@ GoNavi is designed for developers and DBAs who need a unified desktop experience
- [Go](https://go.dev/dl/) 1.21+
- [Node.js](https://nodejs.org/) 18+
- [Wails CLI](https://wails.io/docs/gettingstarted/installation):
`go install github.com/wailsapp/wails/v2/cmd/wails@latest`
`go install github.com/wailsapp/wails/v2/cmd/wails@v2.11.0`
### Development Mode
@@ -144,6 +144,12 @@ cd GoNavi
# Start development with hot reload
wails dev
# Faster local startup when exported Go method signatures are unchanged
node tools/wails-fast-dev.mjs
# Refresh Wails JS bindings after changing exported Go method signatures
node tools/wails-fast-dev.mjs --refresh-bindings
```
### Build