|
|
8e7b6ae435
|
feat(local-tool): clean build 為預設 + 藏 server 小黑窗 + 預設真實模式
Makefile:
- 新增 clean-all target:clean + wails build/ + frontend build/ + server embed
- 新增 clean-build-exe / clean-build-dmg / clean-build-appimage
bootstrap-windows.ps1:
- 預設改為 clean build(每次重做 wails + server binary + frontend embed)
- 保留 vendor/ 快取避免重下 200MB+ 第三方相依
- 需要 fast path(只重跑 iscc)時設 VISIONA_FAST=1
app.go:
- configureSysProcAttr() 注入子行程,Windows 下 CREATE_NO_WINDOW 藏掉 server 小黑窗
- 覆蓋 server spawn / tar 解壓 / venv 建立 / pip install 四個關鍵點
- mockMode 預設改 false(依使用者決策 Q8,預設走真實硬體模式)
需要強制 mock 時設環境變數 VISIONA_MOCK=1
platform_{windows,darwin,linux}.go:
- 新增 configureSysProcAttr(cmd):Windows 設 HideWindow + CREATE_NO_WINDOW,
macOS/Linux 空實作
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 04:25:09 +08:00 |
|
|
|
eb52f8c690
|
fix(local-tool): locateServerBinary 找 {app}\bin\ 子目錄(Windows/Linux installer 佈局)
根因:Windows installer 把 visiona-local-server.exe 裝到 {app}\bin\
(.iss 的 DestDir: "{app}\bin"),但 locateServerBinary 只搜
exeDir\visiona-local-server.exe 和 macOS bundle 專屬路徑,
Windows/Linux 打包後的 bin/ 子目錄完全沒被搜尋,導致執行時
"server binary not found" 嚴重錯誤。
修法:
- locateServerBinary 第一優先搜 exeDir\bin\visiona-local-server
(Inno Setup installer / AppImage 的標準佈局)
- 開發模式 fallback 新增 payload/<goos>/bin/ 候選路徑
- 同時修正 locateBundleBinDir / locateBundledPythonAssets 的開發模式
fallback 寫死 "payload/darwin",改用 runtime.GOOS 動態選 payload 子目錄
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 03:45:17 +08:00 |
|
|
|
83981e5b1b
|
docs(local-tool): progress.md 記錄 M7 Windows 一鍵 build + splash regression
- 新增 M7-A:Windows 一鍵 build 工具鏈踩坑紀錄(11 項修好)
- 新增 M7-B:splash regression P0 修復(visiona-local/frontend 殘留 wizard → 改為 splash+redirect)
- 補「M1 驗收流程漏看 Wails 視窗內容」到未解決問題,作為後續 M 任務驗收 checklist
- 補 ffmpeg GPL release blocker 到未解決問題清單
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 03:35:20 +08:00 |
|
|
|
570e040a67
|
fix(local-tool): Wails 主視窗改為 splash + redirect 到 Next.js 主 UI
根因:visiona-local/frontend/ 是從 edge-ai-platform 複製過來的 installer wizard
HTML/JS/CSS,整組沒清理。main.go 的 //go:embed all:frontend 把這堆 wizard
直接當 Wails 主視窗內容,使用者開啟 app 看到的就是 "Edge AI Platform Installer"
而不是 Next.js 主 UI。macOS dmg 版本也有同樣問題,只是之前驗證時沒開 Wails
視窗而是用瀏覽器直連 localhost:3721 所以沒抓到。
修法:把 visiona-local/frontend/ 重寫為極簡 splash:
- index.html:splash 畫面
- app.js:import GetServerStatus / GetServerURL binding,輪詢直到 server ready,
window.location.replace(url + '/') 跳到 Next.js 主 UI
- style.css:splash 樣式
Next.js 主 UI 不使用任何 Wails JS binding(純 HTTP API),所以從 wails://
跳到 http://127.0.0.1:<port>/ 後功能完整可用。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 03:32:31 +08:00 |
|
|
|
1c5866ed14
|
debug(local-tool): Windows build 失敗追蹤
Makefile _run-iscc:
- 開頭印出 ISCC 環境變數和 PATH 前幾項,確認有沒有正確傳進來
bootstrap-windows.ps1:
- 不再用 bash.exe -lc "..." 傳整條字串(含空格路徑會被 PS 雙層 quoting 切斷)
- 改寫成 tmp .sh 檔,用 bash.exe -l file.sh 執行
- 執行前印出 script 內容,執行後刪掉 tmp 檔
- script 開頭加 'set -e' 確保任何一行失敗立即停止並回非 0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 03:17:07 +08:00 |
|
|
|
06031206af
|
feat(local-tool): Windows build fast path + 產物驗證
Makefile:
- 新增 exe-only target:只跑 iscc 打包 installer,不重 build wails/payload
- 拆出 _run-iscc 共用 recipe,exe 和 exe-only 都依賴它
bootstrap-windows.ps1:
- 偵測 visiona-local.exe / server.exe / ffmpeg.exe / python.tar.gz 都在時走 fast path
只跑 make exe-only,省掉重複 wails build 的數分鐘
- 跑完驗證 dist\visiona-local-*-windows-x64.exe 確實存在,否則明確 Fail 並提示手動 iscc 指令
使用情境:使用者刪掉 dist\ 想重打 installer,再跑一次 bootstrap 就能秒出 .exe
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 03:11:42 +08:00 |
|
|
|
4521ee3119
|
fix(local-tool): Inno Setup 6.3+ 不再內建 ChineseTraditional.isl
Inno Setup 6.3 起官方只保留 ChineseSimplified,繁體中文語系需額外下載。
改為以 WITH_TRAD_CHINESE 宏條件啟用,預設只用英文 installer UI,
避免在新版 Inno Setup 上直接 compile error。
這只影響「安裝精靈本身」的語系,應用程式 UI 的 i18n 不受影響。
未來若要帶繁體中文 installer,下載 istrans 檔案後用 iscc /DWITH_TRAD_CHINESE=1 編譯。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:45:51 +08:00 |
|
|
|
80252b12dc
|
chore(local-tool): 為 make exe 加診斷輸出
印出 iscc 的 cwd、exit code、dist/ 實際內容,
避免靜默失敗讓人找不到產物去向。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:41:51 +08:00 |
|
|
|
dbad729da3
|
fix(local-tool): Inno Setup 偵測加入 user-scope 安裝路徑
winget 7.x 的 Inno Setup 可能裝到 %LOCALAPPDATA%\Programs\Inno Setup 6\
而非傳統的 Program Files (x86)。新增 user-scope 固定路徑 + HKCU 登錄檔 +
%LOCALAPPDATA%\Programs 遞迴掃描三種偵測方式。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:35:13 +08:00 |
|
|
|
e6f7afe8db
|
fix(local-tool): 強化 Inno Setup 偵測,支援 ISCC 環境變數 override
Makefile (exe target):
- 新增 ISCC 環境變數 override(絕對路徑優先)
- 偵測順序:\$ISCC → command -v iscc → 已知絕對路徑
- 找不到時列出已嘗試路徑方便 debug
bootstrap-windows.ps1:
- Find-Iscc 函數改用多層策略:固定路徑 → 登錄檔 InstallLocation → Program Files 遞迴掃描
- 偵測不到就自動 winget --force 重裝再試一次
- 同時 export PATH 和 ISCC 雙保險傳給 Makefile
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:27:38 +08:00 |
|
|
|
634e4011fd
|
fix(local-tool): bootstrap 把 Inno Setup 目錄加進 MSYS2 bash PATH
winget 裝的 Inno Setup 6 在 'C:\Program Files (x86)\Inno Setup 6\',
不在 PATH 裡,MSYS2 bash 找不到 iscc.exe 導致 make exe 失敗。
改由 bootstrap 主動偵測安裝路徑並 export 進 bash session PATH。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:23:37 +08:00 |
|
|
|
13ce654ac2
|
fix(local-tool): ffmpeg zip 下載改用相對路徑
Windows 版 python.exe 不懂 MSYS2 的 /tmp 路徑語法,會拿著字面值 '/tmp/...'
去 Windows filesystem 找不到檔案。改下載到 vendor/ffmpeg/windows/ffmpeg-win.zip
相對路徑,bash 跟 python 都看得懂。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:17:18 +08:00 |
|
|
|
a66fd5665b
|
fix(local-tool): 繞過 Windows Store 的 python stub
- Makefile:vendor-wheels-windows / vendor-ffmpeg-windows 改用迴圈偵測真實 python
排除 WindowsApps 路徑下的 Store alias stub,優先使用 VISIONA_PYTHON 環境變數
- Makefile:vendor-ffmpeg-windows 解壓完驗證檔案存在,失敗時 exit 1 而非靜默
- bootstrap-windows.ps1:主動找 winget 裝的真實 python.exe(LOCALAPPDATA / Program Files / py launcher),
轉成 MSYS2 路徑後以 VISIONA_PYTHON 傳給 Makefile
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 02:11:16 +08:00 |
|
|
|
071964bddd
|
fix(local-tool): Windows build 跨平台相容性修正
Makefile:
- vendor-wheels-windows 自動偵測 pip3/pip/python -m pip,MSYS2 bash 裡沒 pip3 也能跑
- vendor-ffmpeg-windows 改用 python zipfile 解壓,移除 unzip 依賴
- 新增 build-server-windows / build-server-linux 兩個 cross-build target
- payload-windows / payload-linux 改依賴對應的 build-server-*,不再只印警告
bootstrap-windows.ps1:
- 設定 MSYS2_PATH_TYPE=inherit,讓 MSYS2 bash 繼承 Windows PATH 找到 go/pnpm/python/wails
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 01:58:25 +08:00 |
|
|
|
ba15097e9d
|
fix(local-tool): PowerShell 5.1 compatibility for bootstrap-windows.ps1
- 改用陣列 + -join ' && ' 組 bash 指令,避開 PS5.1 不支援 && 運算子
- 加入 UTF-8 BOM,避免 Windows 10 預設用 ANSI/Big5 解讀造成中文亂碼
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 01:44:06 +08:00 |
|
|
|
5a8d2797c2
|
chore(local-tool): rename local_tool → local-tool, add linux/windows bootstrap scripts
- 統一目錄名為 local-tool(連字號),修正所有文件中殘留的底線版本
- 新增 scripts/bootstrap-linux.sh 與 scripts/bootstrap-windows.ps1
一鍵安裝依賴(Go/Node/pnpm/Wails/MSYS2)並執行 payload + installer build
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-11 23:23:29 +08:00 |
|
|
|
c54f16fca0
|
Initial commit: visionA monorepo with local-tool subproject
local-tool/: visionA-local desktop app
- M1: Wails shell + Go server + Next.js UI + Mock mode (macOS dmg ready)
- M2: i18n (zh-TW/en) + Settings 4-tab refactor
- M3: Embedded Python 3.12 runtime (python-build-standalone) + KneronPLUS wheels
- M4: Windows Inno Setup script (build on Windows runner)
- M5: Linux AppImage script + udev rule (build on Linux runner)
- M6: ffmpeg (GPL, pending legal review) + yt-dlp bundled
- Lifecycle: watchServer health check, fatal native dialog,
Wails IPC raise endpoint, stale process cleanup
.autoflow/: full PRD / Design Spec / Architecture / Testing docs
(4 rounds tri-party discussion + cross review)
.github/workflows/: macOS / Windows / Linux build CI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-11 22:10:38 +08:00 |
|