#!/bin/bash # LaunchPro installer: curl -fsSL https://launchpro.frugai.xyz/install | bash set -e URL="https://launchpro.frugai.xyz/download/LaunchPro.zip" APP="/Applications/LaunchPro.app" [ "$(sw_vers -productVersion | cut -d. -f1)" -ge 26 ] || { echo "LaunchPro needs macOS 26 or later."; exit 1; } TMP=$(mktemp -d); trap 'rm -rf "$TMP"' EXIT curl -fsS -m 3 -X POST "https://license.frugai.xyz/e?n=dl&s=cli" >/dev/null 2>&1 || true echo "Downloading LaunchPro…" curl -fL --progress-bar "$URL" -o "$TMP/LaunchPro.zip" ditto -x -k "$TMP/LaunchPro.zip" "$TMP" SRC=$(find "$TMP" -maxdepth 2 -name "LaunchPro.app" -type d | head -1) [ -n "$SRC" ] || { echo "Download looks broken. Please try again."; exit 1; } pkill -x LaunchPro 2>/dev/null || true if [ -w /Applications ]; then rm -rf "$APP"; ditto "$SRC" "$APP" else echo "Your Mac password is needed to copy into Applications:"; sudo rm -rf "$APP"; sudo ditto "$SRC" "$APP"; fi xattr -dr com.apple.quarantine "$APP" 2>/dev/null || sudo xattr -dr com.apple.quarantine "$APP" 2>/dev/null || true echo "Installed to Applications. Opening LaunchPro…" open "$APP"