-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·68 lines (59 loc) · 1.98 KB
/
install.sh
File metadata and controls
executable file
·68 lines (59 loc) · 1.98 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env bash
# Install Slammer VST3, CLAP, and standalone into standard locations.
# Expects to be run from the extracted release folder (same folder as
# slammer.vst3, slammer.clap, and slammer-standalone).
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
case "$(uname -s)" in
Linux)
VST3_DEST="$HOME/.vst3"
CLAP_DEST="$HOME/.clap"
;;
Darwin)
VST3_DEST="$HOME/Library/Audio/Plug-Ins/VST3"
CLAP_DEST="$HOME/Library/Audio/Plug-Ins/CLAP"
;;
*)
echo "Unsupported OS: $(uname -s). Use install.bat on Windows."
exit 1
;;
esac
VST3_BUNDLE="$SCRIPT_DIR/slammer.vst3"
CLAP_BUNDLE="$SCRIPT_DIR/slammer.clap"
STANDALONE="$SCRIPT_DIR/slammer-standalone"
if [ ! -d "$VST3_BUNDLE" ] && [ ! -d "$CLAP_BUNDLE" ]; then
echo "Error: no slammer.vst3 or slammer.clap found in $SCRIPT_DIR"
echo "Make sure install.sh is in the same folder as the extracted release."
exit 1
fi
echo "Installing Slammer..."
# VST3 bundle — replace any existing bundle to avoid nesting.
if [ -d "$VST3_BUNDLE" ]; then
mkdir -p "$VST3_DEST"
rm -rf "$VST3_DEST/slammer.vst3"
cp -r "$VST3_BUNDLE" "$VST3_DEST/"
echo " VST3 -> $VST3_DEST/slammer.vst3"
fi
# CLAP bundle.
if [ -d "$CLAP_BUNDLE" ]; then
mkdir -p "$CLAP_DEST"
rm -rf "$CLAP_DEST/slammer.clap"
cp -r "$CLAP_BUNDLE" "$CLAP_DEST/"
echo " CLAP -> $CLAP_DEST/slammer.clap"
fi
# Standalone (optional — only present on some release archives).
if [ -f "$STANDALONE" ]; then
BIN_DIR="$HOME/.local/bin"
mkdir -p "$BIN_DIR"
cp "$STANDALONE" "$BIN_DIR/slammer-standalone"
chmod +x "$BIN_DIR/slammer-standalone"
echo " Standalone -> $BIN_DIR/slammer-standalone"
fi
echo ""
echo "Done! Rescan plugins in your DAW to find Slammer."
if [ "$(uname -s)" = "Darwin" ]; then
echo ""
echo "macOS note: if this is the first time, run:"
echo " xattr -dr com.apple.quarantine \"$VST3_DEST/slammer.vst3\" \"$CLAP_DEST/slammer.clap\""
echo "to clear Gatekeeper's quarantine flag on the plugins."
fi