forked from zollans/OnlyEQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (35 loc) · 1.6 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·41 lines (35 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# OnlyEQ installer — downloads the latest release, installs to /Applications,
# and clears the quarantine flag (the app is ad-hoc signed, not notarized,
# so this avoids the "unidentified developer" Gatekeeper block).
#
# curl -fsSL https://raw.githubusercontent.com/zollans/OnlyEQ/main/scripts/install.sh | bash
set -euo pipefail
REPO="zollans/OnlyEQ"
TMP="$(mktemp -d)"
trap 'rm -rf "$TMP"' EXIT
echo "Fetching latest OnlyEQ release…"
URL=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" \
| grep -o '"browser_download_url": *"[^"]*OnlyEQ\.app\.zip"' \
| grep -o 'https://[^"]*')
if [ -z "$URL" ]; then
echo "Couldn't find a release download. See https://github.com/$REPO" >&2
exit 1
fi
curl -fSL --progress-bar "$URL" -o "$TMP/OnlyEQ.app.zip"
echo "Installing to /Applications…"
ditto -x -k "$TMP/OnlyEQ.app.zip" "$TMP/extract"
pkill -x OnlyEQ 2>/dev/null || true
rm -rf /Applications/OnlyEQ.app
ditto "$TMP/extract/OnlyEQ.app" /Applications/OnlyEQ.app
# Not notarized: strip quarantine so Gatekeeper allows the release's existing
# signature. Do not recursively re-sign it here: Sparkle ships signed nested
# helpers whose identifiers and entitlements must remain intact.
xattr -dr com.apple.quarantine /Applications/OnlyEQ.app 2>/dev/null || true
codesign --verify --deep --strict /Applications/OnlyEQ.app >/dev/null 2>&1 || {
echo "Downloaded app failed code-signature verification." >&2
exit 1
}
open /Applications/OnlyEQ.app
echo "✓ OnlyEQ installed — look for it in your menu bar."
echo " First run: allow System Audio access when prompted (macOS 14.4+ required)."