-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
37 lines (29 loc) · 1.31 KB
/
Copy pathinstall.sh
File metadata and controls
37 lines (29 loc) · 1.31 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
#!/bin/sh
set -e
REPO="thunderfm/ProToolsReport"
INSTALL_DIR="$HOME/Applications"
APP_NAME="ProToolsReport.app"
echo "Installing Pro Tools Report..."
# Create ~/Applications if it doesn't exist
mkdir -p "$INSTALL_DIR"
# Download and extract
curl -fsSL "https://github.com/$REPO/archive/refs/heads/master.tar.gz" \
| tar -xz --strip-components=1 -C "$INSTALL_DIR" "ProToolsReport-master/$APP_NAME"
# Ensure binary is executable
chmod +x "$INSTALL_DIR/$APP_NAME/Contents/MacOS/ProToolsReport"
# Remove macOS quarantine flag so it opens without Gatekeeper blocking it
xattr -dr com.apple.quarantine "$INSTALL_DIR/$APP_NAME" 2>/dev/null || true
# Seed Fibery token into Keychain if provided at install time
if [ -n "${FIBERY_TOKEN:-}" ]; then
security add-generic-password -a "$USER" -s "ProToolsReport" -w "$FIBERY_TOKEN" 2>/dev/null \
|| security add-generic-password -U -a "$USER" -s "ProToolsReport" -w "$FIBERY_TOKEN" 2>/dev/null \
|| true
echo "Fibery token saved to Keychain."
fi
echo ""
echo "Installed to $INSTALL_DIR/$APP_NAME"
echo ""
echo "After a Pro Tools crash, open Finder → go to ~/Applications → double-click ProToolsReport."
echo ""
echo "Tip: For full log access, grant Full Disk Access in:"
echo " System Settings → Privacy & Security → Full Disk Access → add ProToolsReport.app"