Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
ea9d0e4c
Commit
ea9d0e4c
authored
Apr 05, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install scripts
parent
fb2700e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
0 deletions
+193
-0
docs/install_centos.sh
docs/install_centos.sh
+88
-0
docs/install_ubnutu.sh
docs/install_ubnutu.sh
+87
-0
docs/update.sh
docs/update.sh
+18
-0
No files found.
docs/install_centos.sh
0 → 100644
View file @
ea9d0e4c
#!/bin/bash
sudo
systemctl stop firewalld
sudo
yum update
-y
sudo
yum
install
epel-release yum-utils
-y
sudo
rpm
--import
"http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
sudo
yum-config-manager
--add-repo
http://download.mono-project.com/repo/centos7/
curl
--silent
--location
https://rpm.nodesource.com/setup_4.x |
sudo
bash -
sudo
yum
install
nodejs git gcc gcc-c++ sqlite-devel readline-devel openssl-devel wget mono-complete
-y
sudo
npm
install
pm2
-g
cd
~
mkdir
lib
cd
lib
wget https://nchc.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2
tar
jxvf p7zip_16.02_src_all.tar.bz2
cd
p7zip_16.02
sudo
make all3
install
cd
..
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar
xzfv redis-4.0.8.tar.gz
cd
redis-4.0.8
make
sudo
make
install
cp
-rf
src/redis-server ..
cd
..
pm2 start redis-server
wget
'http://www.lua.org/ftp/lua-5.3.4.tar.gz'
tar
zxf lua-5.3.4.tar.gz
cd
lua-5.3.4
sudo
make linux
test install
cd
..
wget
'http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip?r=&ts=1457170593&use_mirror=nchc'
-O
premake-4.4-beta5-src.zip
7z x
-y
premake-4.4-beta5-src.zip
cd
premake-4.4-beta5/build/gmake.unix/
make
cd
../../bin/release/
sudo cp
premake4 /usr/bin/
cd
../../../
wget
'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz'
-O
libevent-2.0.22-stable.tar.gz
tar
xf libevent-2.0.22-stable.tar.gz
cd
libevent-2.0.22-stable/
./configure
make
sudo
make
install
sudo ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
cd
..
cd
..
git clone
--depth
=
1 https://github.com/purerosefallen/ygopro-server ygopro-server
cd
ygopro-server
npm
install
cp
-rf
config_build config
mkdir
decks decks_save replays
git clone
--depth
=
1 https://github.com/purerosefallen/ygopro-7210srv ygopro
cd
ygopro
premake4 gmake
cd
build
make
config
=
release
cd
..
ln
-s
bin/release/ygopro
.
strip ygopro
mkdir
replay
git clone
--depth
=
1 https://github.com/Smile-DK/ygopro-scripts script
cd
..
git clone
--depth
=
1 https://github.com/purerosefallen/windbot
cd
windbot
echo
y | xbuild /property:Configuration
=
Release
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
pm2 start pm2.json
cd
..
pm2 start ygopro-server.js
pm2 start ygopro-webhook.js
docs/install_ubnutu.sh
0 → 100644
View file @
ea9d0e4c
#!/bin/bash
sudo
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo
"deb http://download.mono-project.com/repo/ubuntu xenial main"
|
sudo tee
/etc/apt/sources.list.d/mono-official.list
echo
y |
sudo
apt-get update
-y
echo
y |
sudo
apt-get
install
-y
curl git build-essential libreadline-dev libsqlite3-dev mono-complete
curl
-sL
https://deb.nodesource.com/setup_4.x |
sudo
-E
bash -
echo
y |
sudo
apt-get
install
-y
nodejs
sudo
npm
install
pm2
-g
cd
~
mkdir
lib
cd
lib
wget https://nchc.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2
tar
jxvf p7zip_16.02_src_all.tar.bz2
cd
p7zip_16.02
sudo
make all3
install
cd
..
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar
xzfv redis-4.0.8.tar.gz
cd
redis-4.0.8
make
sudo
make
install
cp
-rf
src/redis-server ..
cd
..
pm2 start redis-server
wget
'http://www.lua.org/ftp/lua-5.3.4.tar.gz'
tar
zxf lua-5.3.4.tar.gz
cd
lua-5.3.4
sudo
make linux
test install
cd
..
wget
'http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip?r=&ts=1457170593&use_mirror=nchc'
-O
premake-4.4-beta5-src.zip
7z x
-y
premake-4.4-beta5-src.zip
cd
premake-4.4-beta5/build/gmake.unix/
make
cd
../../bin/release/
sudo cp
premake4 /usr/bin/
cd
../../../
wget
'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz'
-O
libevent-2.0.22-stable.tar.gz
tar
xf libevent-2.0.22-stable.tar.gz
cd
libevent-2.0.22-stable/
./configure
make
sudo
make
install
sudo ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
sudo ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
cd
..
cd
..
git clone
--depth
=
1 https://github.com/purerosefallen/ygopro-server ygopro-server
cd
ygopro-server
npm
install
cp
-rf
config_build config
mkdir
decks decks_save replays
git clone
--depth
=
1 https://github.com/purerosefallen/ygopro-7210srv ygopro
cd
ygopro
premake4 gmake
cd
build
make
config
=
release
cd
..
ln
-s
bin/release/ygopro
.
strip ygopro
mkdir
replay
git clone
--depth
=
1 https://github.com/Smile-DK/ygopro-scripts script
cd
..
git clone
--depth
=
1 https://github.com/purerosefallen/windbot
cd
windbot
echo
y | xbuild /property:Configuration
=
Release
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
pm2 start pm2.json
cd
..
pm2 start ygopro-server.js
pm2 start ygopro-webhook.js
docs/update.sh
0 → 100644
View file @
ea9d0e4c
#!/bin/bash
cd
~/ygopro-server
git pull origin master
cd
windbot
git pull origin master
echo
y | xbuild /property:Configuration
=
Release
cd
../ygopro
git pull origin master
cd
script
git pull origin master
git reset
--hard
FETCH_HEAD
cd
..
premake4 gmake
cd
build
make
config
=
release
cd
..
strip ygopro
cd
~
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment