Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ main() {
download "$url" "$dest"
chmod +x "$dest"

# Remove macOS quarantine flag (prevents Gatekeeper "malware" warning)
# macOS: clear every xattr the OS attached during the curl download.
# com.apple.quarantine alone isn't enough — com.apple.provenance has
# been observed to SIGKILL the binary on first launch even after
# quarantine is stripped. The Go toolchain already ad-hoc signs the
# binary at build time, so we don't need to re-sign here.
if [ "$os" = "darwin" ]; then
xattr -d com.apple.quarantine "$dest" 2>/dev/null || true
xattr -c "$dest" 2>/dev/null || true
fi

ok "Installed ${version} to ${dest}"
Expand Down
8 changes: 5 additions & 3 deletions internal/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ open "$URL"
return
}

// Strip quarantine — the bundle isn't signed, so without this it
// might trip Gatekeeper on first launch.
_ = exec.Command("xattr", "-dr", "com.apple.quarantine", appDir).Run()
// Clear *every* extended attribute on the bundle. com.apple.quarantine
// alone isn't enough — com.apple.provenance has been observed to
// SIGKILL the binary on first launch even after quarantine is stripped.
// The Go toolchain already ad-hoc signs the binary at build time.
_ = exec.Command("xattr", "-cr", appDir).Run()

fmt.Printf("App launcher created: %s\n", appDir)
fmt.Println(" Find VibeCockpit in Launchpad / Spotlight to start the web UI.")
Expand Down
Loading