Commit 20341685 authored by nanahira's avatar nanahira

update install script

parent b9efb94e
...@@ -66,12 +66,9 @@ mkdir decks decks_save replays ...@@ -66,12 +66,9 @@ mkdir decks decks_save replays
git clone https://github.com/purerosefallen/ygopro --branch=server --recursive git clone https://github.com/purerosefallen/ygopro --branch=server --recursive
cd ygopro/ cd ygopro/
git submodule foreach git checkout master
premake4 gmake premake4 gmake
cd ocgcore/ cd build/
git checkout master
cd ../script/
git checkout master
cd ../build/
make config=release make config=release
cd .. cd ..
ln -s bin/release/ygopro ./ ln -s bin/release/ygopro ./
......
...@@ -9,8 +9,6 @@ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - ...@@ -9,8 +9,6 @@ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
echo y | sudo -E apt-get install -y curl git build-essential libreadline-dev libsqlite3-dev mono-complete nodejs echo y | sudo -E apt-get install -y curl git build-essential libreadline-dev libsqlite3-dev mono-complete nodejs
sudo -E npm install pm2 -g sudo -E npm install pm2 -g
cd ~
mkdir lib mkdir lib
cd lib cd lib
...@@ -65,12 +63,9 @@ mkdir decks decks_save replays ...@@ -65,12 +63,9 @@ mkdir decks decks_save replays
git clone https://github.com/purerosefallen/ygopro --branch=server --recursive git clone https://github.com/purerosefallen/ygopro --branch=server --recursive
cd ygopro/ cd ygopro/
git submodule foreach git checkout master
premake4 gmake premake4 gmake
cd ocgcore/ cd build/
git checkout master
cd ../script/
git checkout master
cd ../build/
make config=release make config=release
cd .. cd ..
ln -s bin/release/ygopro ./ ln -s bin/release/ygopro ./
......
#!/bin/bash #!/bin/bash
cd ~/ygopro-server
# update script
cd ygopro-server
git pull origin master git pull origin master
git reset --hard FETCH_HEAD
cd windbot cd windbot
git pull origin master git pull origin master
git reset --hard FETCH_HEAD
echo y | xbuild /property:Configuration=Release echo y | xbuild /property:Configuration=Release
cd ../ygopro cd ../ygopro
git pull origin master git pull origin server
cd script
git pull origin master
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
cd .. git submodule foreach git pull origin master
git submodule foreach git reset --hard FETCH_HEAD
premake4 gmake premake4 gmake
cd build cd build
make config=release make config=release
cd .. cd ../
strip ygopro strip ygopro
cd ~ cd ../../
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment