-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_and_test.sh
More file actions
executable file
·51 lines (42 loc) · 1.77 KB
/
build_and_test.sh
File metadata and controls
executable file
·51 lines (42 loc) · 1.77 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
#!/bin/bash
PASSWORD="aaaa"
BUILD_HASH=$(openssl rand -hex 3 | cut -c1-5 | tr '[:lower:]' '[:upper:]')
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
echo "🔨 Building steverator (Standalone + VST3)..."
echo "📦 BUILD HASH: $BUILD_HASH"
echo ""
mkdir -p Assets
cat > Assets/version.txt << VERSIONEOF
$BUILD_HASH
$TIMESTAMP
VERSIONEOF
echo "✓ version.txt: $BUILD_HASH"
echo ""
cmake -B build -DCMAKE_BUILD_TYPE=Release > /dev/null 2>&1
cmake --build build --config Release 2>&1 | grep -E "(Building|Linking|Built|error)" | tail -15
echo ""
echo "✨ BUILD COMPLETE! Hash: $BUILD_HASH"
echo ""
STANDALONE_APP="build/steverator_artefacts/Release/Standalone/Steverator.app"
# Copy version.txt and PNG images to both VST3 and Standalone Resources
cp Assets/version.txt "build/steverator_artefacts/Release/Standalone/Steverator.app/Contents/Resources/" 2>/dev/null || true
cp Assets/*.png *.ttf "build/steverator_artefacts/Release/Standalone/Steverator.app/Contents/Resources/" 2>/dev/null || true
cp Assets/version.txt "build/steverator_artefacts/Release/VST3/steverator.vst3/Contents/Resources/" 2>/dev/null || true
cp Assets/*.png *.ttf "build/steverator_artefacts/Release/VST3/steverator.vst3/Contents/Resources/" 2>/dev/null || true
echo "✓ version.txt and PNG images copied to Resources"
echo ""
if [ -d "$STANDALONE_APP" ]; then
echo "🎛️ Opening Standalone app..."
echo " Path: $STANDALONE_APP"
open "$STANDALONE_APP"
sleep 1
echo ""
echo "✅ App should be opening now!"
echo " Look for '$BUILD_HASH' in ORANGE at the bottom"
else
echo "❌ Standalone app not found at:"
echo " $STANDALONE_APP"
echo ""
echo "Checking what was built..."
ls -la build/steverator_artefacts/Release/Standalone/ 2>/dev/null || echo "No Standalone folder found"
fi