-
Notifications
You must be signed in to change notification settings - Fork 76
Install script for Ubuntu 18 or Debian 9
Nanahira edited this page Mar 31, 2022
·
2 revisions
Also works with Ubuntu 20.04 and Debian 10 or 11.
#!/bin/bash
sudo apt-get update
sudo apt-get install -y curl wget git build-essential libreadline-dev libsqlite3-dev libevent-dev mono-complete nodejs npm p7zip-full liblua5.3-dev
sudo npm install pm2 npm n -g
sudo n lts
git clone https://github.com/mycard/ygopro --branch=server --recursive
cd ygopro/
git submodule foreach git checkout master
wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
./premake5 gmake
cd build/
make config=release -j$(nproc)
cd ..
ln -s bin/release/ygopro ./
strip ygopro
cd ..
git clone https://github.com/mycard/windbot
cd windbot
xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb .
cd ..
git clone https://github.com/mycard/srvpro ygopro-server
cd ygopro-server
npm ci
ln -s ../ygopro .
ln -s ../windbot .
mkdir config
cp data/default_config.json config/config.json
cd ..