diff --git a/setup b/setup index 275236cd3..0028eac0f 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 @@ -243,6 +248,11 @@ migrate_direct_codex_install() { INSTALL_GSTACK_DIR="$migrated_dir" INSTALL_SKILLS_DIR="$(dirname "$INSTALL_GSTACK_DIR")" BROWSE_BIN="$SOURCE_GSTACK_DIR/browse/dist/browse" + # Windows: binaries are compiled with .exe suffix (same as the top-level + # BROWSE_BIN assignment — this re-derivation must not drop the suffix). + if [ "$IS_WINDOWS" -eq 1 ]; then + BROWSE_BIN="$SOURCE_GSTACK_DIR/browse/dist/browse.exe" + fi } if [ "$INSTALL_CODEX" -eq 1 ]; then