Skip to content

Commit ae81d1a

Browse files
committed
fix(install): remove macOS quarantine xattr from downloaded binary
Bun-compiled binaries are not signed or notarized. macOS applies the com.apple.quarantine extended attribute to files downloaded via curl, which causes Gatekeeper to kill the process with signal 9 on first launch. Remove the quarantine flag after download so the binary can execute without codesigning.
1 parent b68e6ea commit ae81d1a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/install-binary.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ installed_bin="$INSTALL_DIR/free"
175175
cp "$tmp_file" "$installed_bin"
176176
chmod 0755 "$installed_bin"
177177

178+
# Remove macOS quarantine flag that prevents unsigned binaries from launching.
179+
if command -v xattr >/dev/null 2>&1; then
180+
xattr -cr "$installed_bin" 2>/dev/null || true
181+
fi
182+
178183
ensure_active_path "$installed_bin"
179184

180185
auth_args=(login)

0 commit comments

Comments
 (0)