Skip to content

Install script for Ubuntu 16

Yuzurisa edited this page Apr 15, 2020 · 22 revisions

Not tested and may be deprecated. Please upgrade system.

#!/bin/bash

export PROCESS_COUNT=$(grep -c "processor" /proc/cpuinfo)

sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install -y wget git build-essential libreadline-dev libsqlite3-dev libevent-dev mono-complete nodejs redis-server p7zip-full
sudo npm install pm2 -g

git clone https://github.com/moecube/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$PROCESS_COUNT
cd ..
ln -s bin/release/ygopro ./
strip ygopro
cd ..

git clone https://github.com/moecube/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/moecube/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 ..
Clone this wiki locally