forked from LVutner/xray15.11
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
144 lines (86 loc) · 4.17 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: cs-1.8.0.{build}
image: Visual Studio 2019
configuration: Release
platform:
- Win32
- x64
shallow_clone: true
before_build:
- cmd: >-
echo %PLATFORM%
echo %CONFIGURATION%
echo cs_%APPVEYOR_REPO_TAG_NAME%_%PLATFORM%.7z
set COR_PLAT=%PLATFORM%
IF "%COR_PLAT%" == "Win32" set COR_PLAT=x86
set APPVEYOR_VERSION=%APPVEYOR_BUILD_VERSION%_%COR_PLAT%
echo %APPVEYOR_VERSION%
build:
project: ./engine.sln
verbosity: minimal
after_build:
- cmd: >-
IF "%COR_PLAT%" == "x86" set TBB_PLAT=ia32
IF "%COR_PLAT%" == "x64" set TBB_PLAT=intel64
set BUGTRAP=BugTrap-%COR_PLAT%.dll
IF "%COR_PLAT%" == "x86" set BUGTRAP=BugTrap.dll
md dist
echo ===================== engine files =====================
md dist\engine
copy opt\start_%COR_PLAT%.bat dist\engine
md dist\engine\bin_%COR_PLAT%
copy intermediate\%PLATFORM%-%CONFIGURATION%\*.exe dist\engine\bin_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\*.dll dist\engine\bin_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\*.pdb dist\engine\bin_%COR_PLAT%\
copy SDK\binaries\%COR_PLAT%\lua51.dll dist\engine\bin_%COR_PLAT%\
md dist\engine\bin_%COR_PLAT%\lua\jit
copy SDK\binaries\%COR_PLAT%\lua\jit\* dist\engine\bin_%COR_PLAT%\lua\jit\
copy SDK\binaries\%COR_PLAT%\%BUGTRAP% dist\engine\bin_%COR_PLAT%\
md dist\engine\gamedata
xcopy gamedata dist\engine\gamedata /S /E
cd dist\engine
7z a ..\..\cs_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z
cd ..\..
echo appveyor PushArtifact cs_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z release
copy cs_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z cs_%APPVEYOR_VERSION%.7z
appveyor PushArtifact cs_%APPVEYOR_VERSION%.7z
echo ===================== sdk files =====================
md dist\sdk_%COR_PLAT%
copy SDK\binaries\%COR_PLAT%\MagicFM.dll dist\sdk_%COR_PLAT%\
copy SDK\binaries\%COR_PLAT%\FreeImage.dll dist\sdk_%COR_PLAT%\
copy SDK\binaries\%COR_PLAT%\nvtt.dll dist\sdk_%COR_PLAT%\
copy SDK\binaries\%COR_PLAT%\%BUGTRAP% dist\sdk_%COR_PLAT%\
copy SDK\binaries\%COR_PLAT%\lua51.dll dist\sdk_%COR_PLAT%\
md dist\sdk_%COR_PLAT%\lua\jit
copy SDK\binaries\%COR_PLAT%\lua\jit\* dist\sdk_%COR_PLAT%\lua\jit\
copy "3rd party\tbb\bin\%TBB_PLAT%\vc14\tbb.dll" dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrCore.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrCore.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\luabind.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\luabind.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrCDB.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrCDB.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrAPI.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrAPI.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrXMLParser.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\xrXMLParser.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\ETools.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\ETools.pdb dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\SDK\*.exe dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\SDK\*.dll dist\sdk_%COR_PLAT%\
copy intermediate\%PLATFORM%-%CONFIGURATION%\SDK\*.pdb dist\sdk_%COR_PLAT%\
7z a cs_compilers_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z dist\sdk_%COR_PLAT%\*
echo appveyor PushArtifact cs_compilers_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z release
copy cs_compilers_%APPVEYOR_REPO_TAG_NAME%_%COR_PLAT%.7z cs_compilers_%APPVEYOR_VERSION%.7z
appveyor PushArtifact cs_compilers_%APPVEYOR_VERSION%.7z
artifacts:
- path: .\cs_$(appveyor_repo_tag_name)_$(cor_plat).7z
name: release
- path: .\cs_compilers_$(appveyor_repo_tag_name)_$(cor_plat).7z
name: release
deploy:
- provider: GitHub
auth_token:
secure: pXJeBrB1oq+/lPsy2jphy4dRQ542dkJRbAEOD3y/YgSVsoRTSgIt01EI92q9whrl
artifact: release
on:
appveyor_repo_tag: true