docs: add prerequisite install commands to Windows build guide
Added winget install commands and verification steps for Go, Node.js, Git, pnpm, and Wails CLI in TDD section 11.7. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1eab9b7ceb
commit
31b64ef6df
28
docs/TDD.md
28
docs/TDD.md
@ -3211,9 +3211,31 @@ scripts/
|
||||
|
||||
1. **Go 1.23+**:https://go.dev/dl/
|
||||
2. **Node.js 20+**:https://nodejs.org/
|
||||
3. **pnpm**:`npm install -g pnpm`
|
||||
4. **Wails CLI**:`go install github.com/wailsapp/wails/v2/cmd/wails@latest`
|
||||
5. **WebView2 Runtime**(Windows 10/11 通常已內建)
|
||||
3. **Git**:https://git-scm.com/download/win
|
||||
4. **pnpm**:`npm install -g pnpm`
|
||||
5. **Wails CLI**:`go install github.com/wailsapp/wails/v2/cmd/wails@latest`
|
||||
6. **WebView2 Runtime**(Windows 10/11 通常已內建)
|
||||
|
||||
```powershell
|
||||
# 前置需求安裝指令(PowerShell,管理員權限)
|
||||
|
||||
# 如果有 winget(Windows 11 / Windows 10 已更新):
|
||||
winget install GoLang.Go
|
||||
winget install OpenJS.NodeJS.LTS
|
||||
winget install Git.Git
|
||||
|
||||
# 安裝完成後重新開啟 PowerShell,確認版本:
|
||||
go version # 應顯示 go1.23+
|
||||
node --version # 應顯示 v20+
|
||||
git --version # 應顯示 git version 2.x
|
||||
|
||||
# 安裝 pnpm 和 Wails CLI:
|
||||
npm install -g pnpm
|
||||
go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
|
||||
# 驗證 Wails 環境:
|
||||
wails doctor
|
||||
```
|
||||
|
||||
**Build 步驟(PowerShell):**
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user