-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·48 lines (38 loc) · 1.2 KB
/
install.sh
File metadata and controls
executable file
·48 lines (38 loc) · 1.2 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
#!/bin/bash
# Build and install JamWide plugin
set -e
cd "$(dirname "$0")"
# Increment build number
BUILD_FILE="src/build_number.h"
if [ -f "$BUILD_FILE" ]; then
CURRENT=$(grep JAMWIDE_BUILD_NUMBER "$BUILD_FILE" | grep -o '[0-9]*')
NEW=$((CURRENT + 1))
echo "#pragma once" > "$BUILD_FILE"
echo "#define JAMWIDE_BUILD_NUMBER $NEW" >> "$BUILD_FILE"
echo "Build number: r$NEW"
fi
# Build
cmake --build build
# Install locations (user)
CLAP_DIR="$HOME/Library/Audio/Plug-Ins/CLAP"
VST3_DIR="$HOME/Library/Audio/Plug-Ins/VST3"
AU_DIR="$HOME/Library/Audio/Plug-Ins/Components"
# Create directories
mkdir -p "$CLAP_DIR" "$VST3_DIR" "$AU_DIR"
# Install CLAP
rm -rf "$CLAP_DIR/JamWide.clap"
cp -R build/JamWide.clap "$CLAP_DIR/"
SetFile -a B "$CLAP_DIR/JamWide.clap"
echo "Installed JamWide.clap to $CLAP_DIR"
# Install VST3
rm -rf "$VST3_DIR/JamWide.vst3"
cp -R build/JamWide.vst3 "$VST3_DIR/"
SetFile -a B "$VST3_DIR/JamWide.vst3"
echo "Installed JamWide.vst3 to $VST3_DIR"
# Install AU
rm -rf "$AU_DIR/JamWide.component"
cp -R build/JamWide.component "$AU_DIR/"
SetFile -a B "$AU_DIR/JamWide.component"
echo "Installed JamWide.component to $AU_DIR"
echo ""
echo "JamWide r$NEW installed (CLAP, VST3, AU)"