cloud-game/scripts/install.sh
2023-04-26 23:10:35 +03:00

28 lines
559 B
Bash
Executable file

#!/usr/bin/env bash
deps="$1"
echo This script should install application dependencies for Debian-based systems
if [ $(id -u) -ne 0 ]
then
echo "error: run with sudo or root"
exit 1
fi
apt-get -qq update
if [ "$deps" = "x11-only" ]; then
apt-get -qq install --no-install-recommends -y \
ca-certificates \
libgl1-mesa-dri \
xvfb
else
apt-get -qq install --no-install-recommends -y \
ca-certificates \
libvpx7 \
libx264-164 \
libopus0 \
libgl1-mesa-dri \
xvfb
fi
apt-get clean
apt-get autoremove