-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·64 lines (51 loc) · 1.34 KB
/
build.sh
File metadata and controls
executable file
·64 lines (51 loc) · 1.34 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
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Build script for ALG App Store Qt6 version
set -e
echo "==================================="
echo "ALG App Store - Qt6 Build Script"
echo "==================================="
echo ""
# Check for required dependencies
echo "Checking dependencies..."
command -v cmake >/dev/null 2>&1 || {
echo "Error: cmake is not installed. Install with: sudo pacman -S cmake"
exit 1
}
command -v qmake6 >/dev/null 2>&1 || command -v qmake >/dev/null 2>&1 || {
echo "Error: Qt6 is not installed. Install with: sudo pacman -S qt6-base"
exit 1
}
pkg-config --exists libalpm || {
echo "Error: libalpm is not installed. Install with: sudo pacman -S pacman"
exit 1
}
echo "All dependencies found!"
echo ""
# Clean previous build
if [ -d "build" ]; then
echo "Cleaning previous build..."
rm -rf build
fi
# Create build directory
echo "Creating build directory..."
mkdir -p build
cd build
# Configure with CMake
echo ""
echo "Configuring with CMake..."
cmake .. -DCMAKE_BUILD_TYPE=Release
# Build
echo ""
echo "Building..."
make -j$(nproc)
echo ""
echo "==================================="
echo "Build completed successfully!"
echo "==================================="
echo ""
echo "To run the application:"
echo " ./build/alg-app-store"
echo ""
echo "To install system-wide:"
echo " sudo make install (from build directory)"
echo ""