This repository has been archived by the owner on Sep 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.appveyor.yml
187 lines (168 loc) · 6.83 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
platform:
- x86
- x64
configuration:
- debug
- release
environment:
matrix:
- DC: dmd
- DC: ldc
matrix:
exclude:
- DC: dmd
configuration: release
skip_tags: true
artifacts:
- path: selery-hub.exe
name: hub
- path: selery-node.exe
name: node
- path: selery.exe
name: default
- path: selery-portable-%selery_version%.exe
name: portable
- path: selery-%selery_version%-windows-%lower_platform%.zip
name: zip
deploy:
- provider: GitHub
tag: v$(selery_version)
release: Selery $(selery_version)
description: "$(release_notes)"
auth_token:
secure: ioKlisLYTQCnQTUDVHlgLw24mtQ2/uMlCOt4BPvioprrpHYROYCP1lR/oFER/EIB
artifact: selery-%selery_version%-windows-%lower_platform%.zip
force_update: true
on:
DC: ldc2
configuration: release
selery_is_release: true
- provider: GitHub
tag: v$(selery_version)
release: Selery $(selery_version)
description: "$(release_notes)"
auth_token:
secure: ioKlisLYTQCnQTUDVHlgLw24mtQ2/uMlCOt4BPvioprrpHYROYCP1lR/oFER/EIB
artifact: selery-portable-%selery_version%.exe
force_update: true
on:
DC: ldc2
configuration: release
platform: x86
selery_is_release: true
install:
- ps: function SetUpDCompiler
{
if($env:platform -eq "x86"){
$env:DConf = "m32";
$env:lower_platform = "x86";
}
elseif($env:platform -eq "x64"){
$env:DConf = "m64";
$env:lower_platform = "x64";
}
if($env:DC -eq "dmd"){
appveyor DownloadFile "http://downloads.dlang.org/releases/LATEST";
$version = (Get-Content -Path LATEST).toString();
appveyor DownloadFile "http://downloads.dlang.org/releases/2.x/$($version)/dmd.$($version).windows.7z" -FileName "c:\dmd.7z";
echo "finished.";
pushd c:\\;
7z x dmd.7z > $null;
popd;
}
elseif($env:DC -eq "ldc"){
appveyor DownloadFile "https://raw.githubusercontent.com/ldc-developers/ldc-developers.github.io/master/LATEST";
$version = (Get-Content -Path LATEST).toString();
appveyor DownloadFile "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-windows-$($env:lower_platform).7z" -FileName "c:\ldc.7z";
echo "finished.";
pushd c:\\;
7z x ldc.7z > $null;
mv ldc2-$($version)-windows-$($env:lower_platform) ldc2;
popd;
}
}
- ps: SetUpDCompiler
- appveyor DownloadFile "https://github.com/electron/rcedit/releases/download/v1.0.0/rcedit-x86.exe" -FileName rcedit.exe
- appveyor DownloadFile "http://code.dlang.org/files/dub-1.3.0-windows-x86.zip" -FileName dub.zip
- 7z x dub.zip -odub > nul
- set PATH=%CD%;%CD%\%binpath%;%CD%\dub;%PATH%
- dub --version
before_build:
- ps: if($env:platform -eq "x86"){
$env:compilersetupargs = "x86";
if($env:DC -eq "dmd"){
$env:Darch = "x86_mscoff";
}
elseif($env:DC -eq "ldc") {
$env:Darch = "x86";
}
$env:Darch = "x86";
}
elseif($env:platform -eq "x64"){
$env:compilersetupargs = "amd64";
$env:Darch = "x86_64";
}
- ps : if($env:DC -eq "dmd"){
$env:PATH += ";C:\dmd2\windows\bin;";
}
elseif($env:DC -eq "ldc"){
$env:PATH += ";C:\ldc2\bin";
$env:DC = "ldc2";
}
- ps: $env:compilersetup = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall";
- '"%compilersetup%" %compilersetupargs%'
- mkdir plugins
# - git clone https://github.com/selery-plugins/rcon.git plugins/rcon
- git clone https://github.com/selery-plugins/vanilla.git plugins/vanilla
# - git clone https://github.com/selery-plugins/web-admin.git plugins/web-admin
- git clone https://github.com/selery-plugins/web-view.git plugins/web-view
build_script:
- build.bat -c %DC% %CONFIGURATION% -a %Darch% hub
- build.bat -c %DC% %CONFIGURATION% -a %Darch% node
- build.bat -c %DC% %CONFIGURATION% -a %Darch% default
- build.bat -c %DC% %CONFIGURATION% -a %Darch% default --portable
after_build:
- cd builder\views
- set /p selery_version=<version.txt
- set /p release_notes=<notes.txt
- set /p selery_is_release=<is_release.txt
- cd ..\..
- rcedit selery-hub.exe --set-version-string ProductName "Selery's hub"
- rcedit selery-hub.exe --set-version-string FileDescription "Selery's hub %selery_version%"
- rcedit selery-hub.exe --set-version-string OriginalFileName selery-hub.exe
- rcedit selery-hub.exe --set-file-version %selery_version%.0
- rcedit selery-hub.exe --set-product-version %selery_version%
- rcedit selery-hub.exe --set-icon assets\icons\hub.ico
- rcedit selery-node.exe --set-version-string ProductName "Selery's node"
- rcedit selery-node.exe --set-version-string FileDescription "Selery's node %selery_version%"
- rcedit selery-node.exe --set-version-string OriginalFileName selery-node.exe
- rcedit selery-node.exe --set-file-version %selery_version%.0
- rcedit selery-node.exe --set-product-version %selery_version%
- rcedit selery-node.exe --set-icon assets\icons\node.ico
- rcedit selery.exe --set-version-string ProductName "Selery"
- rcedit selery.exe --set-version-string FileDescription "Selery %selery_version%"
- rcedit selery.exe --set-version-string OriginalFileName selery.exe
- rcedit selery.exe --set-file-version %selery_version%.0
- rcedit selery.exe --set-product-version %selery_version%
- rcedit selery.exe --set-icon assets\icons\default.ico
- rename selery-%selery_version%.exe selery-portable-%selery_version%.exe
- rcedit selery-portable-%selery_version%.exe --set-version-string ProductName "Selery portable"
- rcedit selery-portable-%selery_version%.exe --set-version-string FileDescription "Selery portable %selery_version%"
- rcedit selery-portable-%selery_version%.exe --set-version-string OriginalFileName selery-portable-%selery_version%.exe
- rcedit selery-portable-%selery_version%.exe --set-file-version %selery_version%.0
- rcedit selery-portable-%selery_version%.exe --set-product-version %selery_version%
- rcedit selery-portable-%selery_version%.exe --set-icon assets\icons\default.ico
- rmdir /s /q assets\icons
- 7z a selery-%selery_version%-windows-%lower_platform%.zip LICENSE selery-hub.exe selery-node.exe selery.exe assets\
test_script:
- selery-hub --about
- selery-node --about
- selery --about
- selery-portable-%selery_version% --about
on_success:
- set RESULT=0
on_failure:
- set RESULT=1
on_finish:
- appveyor DownloadFile "https://gist.githubusercontent.com/Kripth/e570f715c27d0a345619e2ea881ed97d/raw/" -FileName update.d
- rdmd update.d