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) <noreply@anthropic.com>
This commit is contained in:
Pauniel0201 2026-05-26 15:32:16 +09:00
parent a3259400a3
commit 3ddba5e308
1 changed files with 5 additions and 0 deletions

5
setup
View File

@ -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