-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_plugin.sh
More file actions
50 lines (41 loc) · 1.33 KB
/
build_plugin.sh
File metadata and controls
50 lines (41 loc) · 1.33 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
#!/bin/bash
# JUCE Audio Generator Plugin Build Script
# This script builds the plugin in both Debug and Release configurations
echo "=== JUCE Audio Generator Plugin Build Script ==="
echo ""
# Check if build directory exists
if [ ! -d "build" ]; then
echo "Creating build directory..."
mkdir build
fi
cd build
echo "Configuring CMake..."
cmake .. -DCMAKE_BUILD_TYPE=Release
if [ $? -ne 0 ]; then
echo "ERROR: CMake configuration failed!"
exit 1
fi
echo ""
echo "Building plugin..."
cmake --build . --config Release
if [ $? -ne 0 ]; then
echo "ERROR: Build failed!"
exit 1
fi
echo ""
echo "=== Build completed successfully! ==="
echo ""
echo "Plugin files created:"
echo "- VST3: build/JUCEAudioGenerator_artefacts/Release/VST3/JUCEAudioGenerator.vst3"
echo "- AU: build/JUCEAudioGenerator_artefacts/Release/AU/JUCEAudioGenerator.component"
echo "- Standalone: build/JUCEAudioGenerator_artefacts/Release/Standalone/JUCEAudioGenerator.app"
echo ""
echo "To test the plugin:"
echo "1. Copy the VST3/AU to your plugin directory"
echo "2. Launch your DAW and scan for new plugins"
echo "3. Load 'JUCE Audio Generator' in a track"
echo ""
echo "Plugin directories:"
echo "- macOS VST3: ~/Library/Audio/Plug-Ins/VST3/"
echo "- macOS AU: ~/Library/Audio/Plug-Ins/Components/"
echo "- Windows VST3: C:\\Program Files\\Common Files\\VST3\\"