-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
54 lines (43 loc) · 1.27 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
# AppVeyor
# for WinIPChanger
version: '0.0.2.{build}'
image: Visual Studio 2017
assembly_info:
patch: true
assembly_version: '{version}'
assembly_file_version: '{version}'
# assembly_information_version: '{version}'
platform:
# - x86
- Any CPU
configuration:
- Debug
- Release
matrix:
fast_finish: true
install:
- ps: |
Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version;
$PSVersionTable;
git --version;
before_build:
- nuget restore src\WinIpChanger\WinIpChanger.sln
after_build:
- ps: |
$binDir = '.\src\WinIpChanger\WinIPChargerDesktop\bin';
cd $binDir
ls
if (Test-Path -Path Debug) {
$debugZipName = "WinIPChargerDesktop_Debug";
Rename-Item Debug $debugZipName;
Compress-Archive -Path $debugZipName -DestinationPath "${debugZipName}.zip";
}
if (Test-Path -Path Release) {
$releaseZipName = "WinIPChargerDesktop";
Rename-Item Release $releaseZipName;
Compress-Archive -Path $releaseZipName -DestinationPath "${releaseZipName}.zip";
}
test_script:
- ps: ls
artifacts:
- path: '.\src\WinIpChanger\WinIPChargerDesktop\bin\*.zip'