forked from zyr17/MajsoulPaipuAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-win.yml
53 lines (31 loc) · 1.02 KB
/
appveyor-win.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
version: 1.0.{build}
branches:
only:
- master
build_script:
- ps: >-
$env:PATH = $env:PATH -replace "C:[\\/]Program Files[\\/]Git[\\/]usr[\\/]bin[\\/]?;", ""
$env:PATH = "C:\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin;" + $env:PATH
git submodule init
git submodule update
npm install
npm run-script package-win
mkdir bin
mkdir bin/release
cd bin/release
cmake ../.. -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles"
mingw32-make
cd ../..
cp -r dist/MajsoulPaipuCrawler-win32-x64 result
cp bin/release/PaipuAnalyzer.exe result/
mkdir result/data
cp config.json result/
cp PAADData.json result/
cp doc/README.txt result/
cp doc/release-notes.txt result/
cp -r i18n/ result/
mv result MajsoulPaipuAnalyzer-win-x64
7z a MajsoulPaipuAnalyzer-win-x64.7z MajsoulPaipuAnalyzer-win-x64
artifacts:
- path: MajsoulPaipuAnalyzer-win-x64.7z
name: MajsoulPaipuAnalyzer-win-x64