mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 18:46:11 +00:00
28 lines
559 B
Bash
Executable file
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
|