-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapt_install.sh
More file actions
39 lines (35 loc) · 824 Bytes
/
apt_install.sh
File metadata and controls
39 lines (35 loc) · 824 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
33
34
35
36
37
38
39
#!/bin/bash
packages=(
clang-20
cmake # >= 3.31.1 required
libwebp-dev
llvm
libfmt-dev
libglfw3-dev
libopus-dev
libx11-dev
libgtk-3-dev
libassimp-dev
libpulse-dev
libopus0
libopus-dev
libuv1
libuv1-dev
ninja-build
libglew-dev
libshaderc-dev
)
for package in "${packages[@]}"; do
apt install -y "$package" || echo "Failed to install $package, skipping..."
done
echo "\n\n"
# Verify cmake version
cmake_version=$(cmake --version 2>/dev/null | head -n1 | grep -oE '[0-9]+\.[0-9]+')
if [[ "$cmake_version" < "3.31.1" ]]; then
echo "CMake version $cmake_version is too old (need >= 3.31.1)"
fi
# Verify ninja version
ninja_version=$(ninja --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+')
if [[ "$ninja_version" < "1.12" ]]; then
echo "Ninja version $ninja_version is too old (need >= 1.12)"
fi