From 3ddba5e3083064a3ada5d4c148e2b61c903d6da0 Mon Sep 17 00:00:00 2001 From: Pauniel0201 Date: Tue, 26 May 2026 15:32:16 +0900 Subject: [PATCH] fix(setup): use .exe suffix for BROWSE_BIN on Windows When IS_WINDOWS=1, the browse binary is compiled by bun as browse/dist/browse.exe, but BROWSE_BIN defaults to the suffix-less path, so the post-build verification cannot find the binary and setup fails on every fresh install / upgrade. Override BROWSE_BIN to the .exe path when IS_WINDOWS=1. Co-Authored-By: Claude Opus 4.7 (1M context) --- setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup b/setup index 275236cd3..890a03c36 100755 --- a/setup +++ b/setup @@ -30,6 +30,11 @@ case "$(uname -s)" in MINGW*|MSYS*|CYGWIN*|Windows_NT) IS_WINDOWS=1 ;; esac +# Windows: binaries are compiled with .exe suffix +if [ "$IS_WINDOWS" -eq 1 ]; then + BROWSE_BIN="$SOURCE_GSTACK_DIR/browse/dist/browse.exe" +fi + # ─── Symlink-or-copy helper ─────────────────────────────────── # On macOS/Linux: create a symlink (existing behavior). # On Windows without Developer Mode (MSYS2/Git Bash): plain ln -snf silently