forked from purerosefallen/ygopro-222DIY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
117 lines (97 loc) · 3.79 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '{build}'
install:
- git submodule update --init --recursive
# environment and system dependency
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-windows.zip ; exit 0"
- 7z x premake-5.0.0-alpha10-windows.zip
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz ; exit 0"
- tar xf libevent-2.0.22-stable.tar.gz
- move libevent-2.0.22-stable event
- xcopy /E event\WIN32-Code event\include
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.2.4.tar.gz ; exit 0"
- tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0"
- 7z x sqlite-amalgamation-3150200.zip
- move sqlite-amalgamation-3150200 sqlite3
- appveyor DownloadFile https://github.com/tronkko/dirent/raw/master/include/dirent.h
- move dirent.h gframe\
# let premake happy
- xcopy /E premake\* .
# patch lua
# - patch -p0 < lua\lua.patch
# premake
- premake5 vs2015
configuration: Release
build:
project: build/ygo.sln
parallel: true
after_build:
- ps: move bin\release\ygopro.exe .
- git config --global user.name "Smile-DK"
- git config --global user.email "2236141431@qq.com"
- git clone https://github.com/Smile-DK/ygopro-svrelease
- cd ygopro-svrelease
- rm -rf 222
- mkdir 222
- cp -rf ../ygopro.exe 222
- git add . -A
- git commit -m "ygopro 222DIY server pushed by Appveyor"
- git push %Smile%Smile-DK/ygopro-svrelease master
- cd ..
- git clone https://github.com/purerosefallen/ygopro-7210srv
- git clone https://github.com/moecube/ygopro-server
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://npm.taobao.org/mirrors/node/v8.4.0/node-v8.4.0-win-x64.zip ; exit 0"
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip ; exit 0"
- cd ygopro-server
- mkdir ygopro
- cd ygopro
- git clone https://github.com/Smile-DK/ygopro-scripts script
- mkdir replay
- cp -rf ../../expansions .
# - cp -rf ../../ygopro-7210srv/expansions .
- cp -rf ../../gframe .
- cp -rf ../../ocgcore .
- cp -rf ../../ygopro-7210srv/premake .
- cp -rf ../../ygopro-7210srv/cards.cdb .
- cp -rf ../../ygopro-7210srv/textures .
- cp -rf ../../ygopro-7210srv/*.lua .
- cp -rf ../../lflist.conf .
- cp -rf ../../ygopro-7210srv/strings.conf .
- cp -rf ../../ygopro-7210srv/system.conf .
- cp -rf ../../ygopro.exe .
- cd ..
- mkdir redis
- cd redis
- cp -rf ../../Redis-x64-3.2.100.zip .
- 7z x Redis-x64-3.2.100.zip
- rm -rf Redis-x64-3.2.100.zip
- cd ..
- cp -rf ../ygopro-svrelease/WindBot .
- cp -rf ../node-v8.4.0-win-x64.zip .
- 7z x node-v8.4.0-win-x64.zip
- rm -rf node-v8.4.0-win-x64.zip
- cp -rf node-v8.4.0-win-x64/* .
- rm -rf node-v8.4.0-win-x64
- npm install
- npm install pm2@latest -g
- npm install ws
- npm install redis
- cd ..
- 7z a ygopro-server.7z ygopro-server start.bat -mx=9 -xr!.git*
test: off
artifacts:
- path: ygopro.exe
name: ygopro
- path: ygopro-server.7z
name: ygopro-server
cache:
- premake-5.0.0-alpha10-windows.zip
- libevent-2.0.22-stable.tar.gz
- lua-5.2.4.tar.gz
- sqlite-amalgamation-3150200.zip
- node-v8.4.0-win-x64.zip
- Redis-x64-3.2.100.zip
branches:
only:
- master