added bash script to automatically start gameplay

This commit is contained in:
2021-08-22 01:08:01 +04:00
parent c5bed3afa2
commit 27c7e264b8
9 changed files with 77 additions and 42 deletions

30
install.sh Normal file
View File

@@ -0,0 +1,30 @@
# Note: This script is only be executed inside the docker container
# Assumes to be running on ubuntu 20.04
# Ports required to be allocated internally:
# - 8888 (laplace server)
# - 24800 (barrier server)
# Updating and installing go compiler
apt update
apt install -y golang
apt install -y jq
## Installing git
apt install -y git
## Installing barrier
apt install -y barrier
## Installing chromium
wget https://github.com/RobRich999/Chromium_Clang/releases/download/v94.0.4585.0-r904940-linux64-deb-avx/chromium-browser-unstable_94.0.4585.0-1_amd64.deb
apt install -y ./chromium-browser-unstable_94.0.4585.0-1_amd64.deb
#
## clone remotegameplay distribution
git clone https://github.com/Akilan1999/remotegameplay
## enter cloned directory
cd remotegameplay
# sets REMOTEGAMEPLAY path
export REMOTEGAMEPLAY=$PWD
# Build laplace binary file
go build .
# Set configuration laplace file
./laplace -setconfig