From 291f4224fa6a093982f7fa146346c437f788c1c4 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Tue, 16 Jun 2026 12:34:25 +0800 Subject: [PATCH] fix: build.sh auto-installs wails if missing --- scripts/build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6fcc5cf..df1f459 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -86,12 +86,14 @@ report "go test" $? # ── Wails ── echo "[wails]" +if ! command -v wails &>/dev/null; then + echo " 📦 wails not found — installing..." + go install github.com/wailsapp/wails/v2/cmd/wails@latest + report "wails install" $? +fi if command -v wails &>/dev/null; then (cd "$ROOT" && wails build -clean) report "wails build" $? -else - echo " ❌ wails: command not found. Install with: go install github.com/wailsapp/wails/v2/cmd/wails@latest" - FAILED=1 fi echo ""