feat(updater): add zero-dependency local auto-updater and build bootstrap

This commit is contained in:
CAtlas0784 committed 2026-10-30 21:24:42 +07:00
1 parent e024bc5252
commit 0ec9f62857
5 files changed
+262 -15

No files matched your search

+9 -1
View File
@@ -114,7 +114,14 @@ flowchart TD
### 🛠️ วิธีการรันและบิลด์ (Development & Build)
#### 1. ติดตั้ง Dependencies
#### ⚡ บิลด์และอัปเดตอัตโนมัติในคลิกเดียว (Zero-Dependency One-Click Auto-Update)
หากคุณหรือผู้ใช้งานไม่มี Go, Node.js, Git หรือ Wails ติดตั้งในเครื่อง สามารถดับเบิลคลิกไฟล์นี้ได้ทันที:
```cmd
update-and-build.bat
```
> ระบบจะดาวน์โหลด Portable MinGit, Go 1.24, Node.js v22 และ Wails v3 CLI ไว้ในโฟลเดอร์ `tools/` อัตโนมัติ จากนั้นจะ `git pull` โค้ดล่าสุดจากสาขา `Dev` แล้วทำการคอมไพล์ออกมาเป็น `bin/G-Launcher.exe` พร้อมเปิดใช้งานทันที
#### 1. ติดตั้ง Dependencies (สำหรับผู้ที่มี Toolchain ในเครื่องแล้ว)
```bash
# ติดตั้งแพ็กเกจ Frontend
cd frontend
@@ -190,6 +197,7 @@ G-Launcher/
├── proto/ # Protobuf definitions
├── scripts/ # Release & version calculation scripts (launcher-release.mjs)
├── AGENTS.md # Engineering guidelines & development rules
├── update-and-build.bat # Zero-dependency auto-updater & local builder
├── build.bat # Windows build & UPX compression script
├── main.go # Application entry point & service registration
└── Taskfile.yml # Wails build tasks definition