Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/scripts/packaging/appimage/install-packages.sh
4251 views
1
#!/usr/bin/env bash
2
3
function retry_command {
4
# Package servers tend to be unreliable at times..
5
# Retry a bunch of times.
6
local RETRIES=10
7
8
for i in $(seq 1 "$RETRIES"); do
9
"$@" && break
10
if [ "$i" == "$RETRIES" ]; then
11
echo "Command \"$@\" failed after ${RETRIES} retries."
12
exit 1
13
fi
14
done
15
}
16
17
# Workaround for https://github.com/actions/runner-images/issues/675
18
retry_command wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
19
retry_command sudo apt-add-repository -n 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main'
20
21
retry_command sudo apt-get update
22
retry_command sudo apt-get -y install \
23
build-essential clang-19 cmake curl extra-cmake-modules git libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdecor-0-dev libegl-dev libevdev-dev \
24
libfontconfig-dev libfreetype-dev libfuse2 libgtk-3-dev libgudev-1.0-dev libharfbuzz-dev libinput-dev libopengl-dev libpipewire-0.3-dev libpulse-dev \
25
libssl-dev libudev-dev libva-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-cursor-dev libxcb-damage0-dev \
26
libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev \
27
libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xinput-dev libxcb-xkb-dev libxext-dev libxkbcommon-x11-dev \
28
libxrandr-dev lld-19 llvm-19 nasm ninja-build patchelf pkg-config zlib1g-dev
29
30