-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
72 lines (67 loc) · 2.09 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
version: 2.0.{build}
branches:
only:
- master
skip_commits:
files:
- "*.yml"
- "*.rst"
- "LICENSE"
- "README.MD"
install:
- set QTDIR=C:\Qt\5.12.1\mingw73_64
- set MINGW64DIR=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64
- set PATH=%PATH%;%QTDIR%\bin;C:\Qt\5.12.1\Tools\mingw730_64\bin;%MINGW64DIR%\bin;
build_script:
- cmd: cd srun-3k-ui
- qmake srun-3k-ui.pro
- mingw32-make
after_build:
- windeployqt.exe --release --no-translations --no-angle --no-opengl-sw --no-svg --no-webkit2 release/SRUN3K.exe
- rm -rf release/styles
- rm -rf release/imageformats
- cmd: cp ../LICENSE release/LICENSE
- cmd: cp ../README.MD release/README.MD
- cmd: cp ./server.json release/server.json
- rm -rf release/*.o
- rm -rf release/*.cpp
- rm -rf release/*.h
# Start packing
- echo %appveyor_build_version%
- cd release
- 7z a SRUN3K.V%appveyor_build_version%.7z -mx9 * -r
- 7z a SRUN3K.V%appveyor_build_version%UPDATE.7z -mx9 SRUN3K.exe
# - mkdir download
# - cmd: cp ./SRUN3K.V%appveyor_build_version%.7z download/lastrelease.7z
- DIR
test: off
artifacts:
- path: srun-3k-ui\release\SRUN3K.V%appveyor_build_version%.7z
name: LastRelease
- path: srun-3k-ui\release\SRUN3K.V%appveyor_build_version%UPDATE.7z
name: MainProgramSingel
notifications:
- provider: Email
to:
on_build_status_changed: true
deploy:
- provider: GitHub
release: AutoCi Release V$(appveyor_build_version)
description: '这是使用自动构建平台发布的Release版本。'
auth_token:
secure: "eMffTjPQpQYcEA6rPu0vNDI0HzomzY6KHx1KQxv5cKpyC3WmmV+Lh7RfYEYbO1b0"
artifact: /.*\.7z/ # upload all NuGet packages to release assets
draft: false
prerelease: false
# The FTP deploy does not work normally.Do not use.
# - provider: FTP
# protocol: ftp
# host:
# secure: r9TbzlBz0AACZvBQ6naPBw==
# username:
# secure: eiBksjNqEr8UcXyHJGDebQ==
# password:
# secure: gU0mWPiQsnx33poEhDqH0QkACluHC0qV1nF2mwFsVZg=
# folder: download
# artifact: /.*\.7z/