-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_linux.sh
More file actions
32 lines (27 loc) · 859 Bytes
/
build_linux.sh
File metadata and controls
32 lines (27 loc) · 859 Bytes
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
#!/bin/bash
# Linux Build Script
# Install dependencies if needed (Standard for Ubuntu/Debian)
# sudo apt-get update
# sudo apt-get install build-essential cmake libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev zenity
# Create build directory
mkdir -p build_linux
cd build_linux
# Configure
cmake .. -DCMAKE_BUILD_TYPE=Release
# Build
if cmake --build . --config Release; then
echo "Build complete! Output in build_linux/FntGenerator"
# Ask to run with 5s timeout
read -t 5 -p "Do you want to run FntGenerator now? (Y/n) (Auto-run in 5s): " choice
if [ $? -ne 0 ]; then
echo # Newline after timeout
./FntGenerator
else
if [[ "$choice" != "n" && "$choice" != "N" ]]; then
./FntGenerator
fi
fi
else
echo "Build failed!"
exit 1
fi