Path: blob/master/scripts/packaging/appimage/install-packages.sh
4251 views
#!/usr/bin/env bash12function retry_command {3# Package servers tend to be unreliable at times..4# Retry a bunch of times.5local RETRIES=1067for i in $(seq 1 "$RETRIES"); do8"$@" && break9if [ "$i" == "$RETRIES" ]; then10echo "Command \"$@\" failed after ${RETRIES} retries."11exit 112fi13done14}1516# Workaround for https://github.com/actions/runner-images/issues/67517retry_command wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -18retry_command sudo apt-add-repository -n 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main'1920retry_command sudo apt-get update21retry_command sudo apt-get -y install \22build-essential clang-19 cmake curl extra-cmake-modules git libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdecor-0-dev libegl-dev libevdev-dev \23libfontconfig-dev libfreetype-dev libfuse2 libgtk-3-dev libgudev-1.0-dev libharfbuzz-dev libinput-dev libopengl-dev libpipewire-0.3-dev libpulse-dev \24libssl-dev libudev-dev libva-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-cursor-dev libxcb-damage0-dev \25libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev \26libxcb-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 \27libxrandr-dev lld-19 llvm-19 nasm ninja-build patchelf pkg-config zlib1g-dev282930