-
Notifications
You must be signed in to change notification settings - Fork 40
/
appveyor.yml
87 lines (66 loc) · 2.69 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
version: 2.3-b{build}
# version: 0.6-latest
skip_tags: true
image: Visual Studio 2019
configuration: Release
platform:
- x86
# - x64
init:
- cmd: echo %cd%
- cmd: curl -L -o %temp%\add_gitutf16.py https://raw.githubusercontent.com/rexdf/CommandTrayHost/master/add_gitutf16.py
- cmd: C:\Python39\python.exe %temp%\add_gitutf16.py
# clone_depth: 1
clone_folder: c:\projects\CommandTrayHost
install:
- cmd: >-
cd /d c:\tools\vcpkg
rem git reset --hard
rem git clean -ffdx
rem git pull
rem bootstrap-vcpkg.bat
cd /d c:\projects\CommandTrayHost
vcpkg install rapidjson rapidjson:x64-windows nlohmann-json nlohmann-json:x64-windows
C:\Python39\python.exe vcpkg_patch.py
before_build:
# - cmd: cd c:\projects\CommandTrayHost
- cmd: >-
C:\Python39\Scripts\pip.exe install chardet pytz
C:\Python39\python.exe version_set.py %APPVEYOR_BUILD_NUMBER% 2 3 4
build:
project: c:\projects\CommandTrayHost\CommandTrayHost.sln
verbosity: minimal
after_build:
- cmd: msbuild "c:\projects\CommandTrayHost\CommandTrayHost.sln" /verbosity:minimal /p:Configuration=Release /p:Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild "c:\projects\CommandTrayHost\CommandTrayHost.sln" /verbosity:minimal /p:Configuration=XP-Release /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# - cmd: cd c:\projects\CommandTrayHost
- cmd: >-
mkdir CommandTrayHost-x64
mkdir CommandTrayHost-x86
mkdir CommandTrayHost-xp-x86
copy x64\Release\CommandTrayHost.exe CommandTrayHost-x64\
copy Release\CommandTrayHost.exe CommandTrayHost-x86\
copy XP-Release\CommandTrayHost.exe CommandTrayHost-xp-x86\
curl -L -o upx.zip https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip
7z e upx.zip *.exe -r
upx CommandTrayHost-x64\CommandTrayHost.exe
upx CommandTrayHost-x86\CommandTrayHost.exe
upx CommandTrayHost-xp-x86\CommandTrayHost.exe
7z a -tzip CommandTrayHost-%APPVEYOR_BUILD_VERSION%.zip .\CommandTrayHost-x64\ .\CommandTrayHost-x86\ .\CommandTrayHost-xp-x86\
artifacts:
- path: CommandTrayHost-%APPVEYOR_BUILD_VERSION%.zip
name: CommandTrayHost
deploy:
release: $(appveyor_build_version)
description: "nightly"
provider: GitHub
auth_token:
secure: 6BqGKqbQbDfnZ3Y7SHvdQkPVCjXcJ1GIgPe41oD8K7ttPY/ivWN3iMyq2eZ1s4RD # your encrypted token from GitHub
artifact: CommandTrayHost # upload all NuGet packages to release assets
prerelease: true
force_update: true
on:
branch: release
appveyor_repo_tag: false # deploy on tag push only
cache:
- c:\tools\vcpkg\installed\ -> vcpkg_cache.txt