Install script for Ubuntu 18 or Debian 9
Last edited by nanahira
#!/bin/bash
sudo apt-get update
sudo apt-get install -y curl wget git build-essential liblua5.3-dev libsqlite3-dev libevent-dev mono-complete npm
sudo npm install -g n
sudo n 18
sudo npm install -g pm2 npm n
git clone https://code.mycard.moe/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-beta2/premake-5.0.0-beta2-linux.tar.gz | tar zfx -
./premake5 gmake --lua-deb
cd build/
make config=release -j$(nproc)
cd ..
ln -s bin/release/ygopro ./
strip ygopro
cd ..
git clone https://code.mycard.moe/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://code.mycard.moe/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 ..