-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·45 lines (36 loc) · 1.2 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·45 lines (36 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
#!/bin/bash
# Build script for Bitwig Studio Sample Browser Extension
set -e
echo "🏗️ Building Bitwig Studio Sample Browser Extension..."
# Check if Gradle wrapper exists, otherwise use system gradle
if [ -f "./gradlew" ]; then
GRADLE="./gradlew"
else
GRADLE="gradle"
echo "ℹ️ Using system Gradle (consider adding Gradle wrapper)"
fi
echo "📦 Compiling Java sources..."
$GRADLE compileJava
echo "🧪 Running tests..."
$GRADLE test
echo "📊 Test results:"
if [ -f "build/reports/tests/test/index.html" ]; then
echo " Test report: build/reports/tests/test/index.html"
fi
echo "📦 Creating extension package..."
$GRADLE packageExtension
if [ -f "build/extensions/SampleBrowser.bwextension" ]; then
echo "✅ Extension package created: build/extensions/SampleBrowser.bwextension"
echo ""
echo "🎵 To install in Bitwig Studio:"
echo " 1. Copy to: ~/Bitwig Studio/Extensions/"
echo " 2. Restart Bitwig Studio"
echo " 3. Enable in Settings → Controllers → Add → Sample Browser"
echo ""
echo "🚀 Or run: $GRADLE installExtension (auto-install)"
else
echo "❌ Extension package not found!"
exit 1
fi
echo ""
echo "🎉 Build complete!"