-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
·46 lines (40 loc) · 1.35 KB
/
Copy pathbuild-all.sh
File metadata and controls
executable file
·46 lines (40 loc) · 1.35 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
#!/bin/bash
echo "========================================"
echo " 🚀 Building OpenNotes All Platforms"
echo "========================================"
# Step 1: Build the Vite frontend payload
echo -e "\n[1/4] Compiling frontend source code..."
npm run build
if [ $? -ne 0 ]; then
echo "❌ Frontend build failed. Exiting."
exit 1
fi
# Step 2: Build Linux (Native)
echo -e "\n[2/4] Packaging Linux binaries (.AppImage, .deb, .rpm, .pacman)..."
npx electron-builder --linux
if [ $? -ne 0 ]; then
echo "⚠️ Linux build encountered an issue."
else
echo "✅ Linux build successful."
fi
# Step 3: Build Windows
echo -e "\n[3/4] Packaging Windows binaries (.exe)..."
npx electron-builder --win
if [ $? -ne 0 ]; then
echo "⚠️ Windows build encountered an issue."
else
echo "✅ Windows build successful."
fi
# Step 4: Build macOS
echo -e "\n[4/4] Packaging macOS binaries (.zip)..."
echo "Note: Building macOS .dmg files normally strictly requires being on an Apple machine."
npx electron-builder --mac
if [ $? -ne 0 ]; then
echo "⚠️ macOS build failed (Expected if not running on macOS)."
else
echo "✅ macOS build successful."
fi
echo -e "\n========================================"
echo "🎉 Build Script Finished!"
echo "Check the 'release' directory for your compiled packages."
echo "========================================"