fix: CLI binary not executable when postinstall is skipped (pnpm, bun) (#285)

* fix binary

* check binary in CI
This commit is contained in:
Chris Tate
2026-01-26 17:04:25 -06:00
committed by GitHub
parent bf5ba0a557
commit 6a17379aaf
2 changed files with 17 additions and 8 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ case "$ARCH" in x86_64|amd64) ARCH="x64" ;; aarch64|arm64) ARCH="arm64" ;; esac
BINARY="$SCRIPT_DIR/agent-browser-${OS}-${ARCH}"
if [ -f "$BINARY" ] && [ -x "$BINARY" ]; then
if [ -f "$BINARY" ]; then
# Ensure binary is executable (npm tarballs don't preserve execute bit)
[ -x "$BINARY" ] || chmod +x "$BINARY" 2>/dev/null
exec "$BINARY" "$@"
fi