1- version : 1.0.1 .{build}
1+ version : 1.1.0 .{build}
22image : Visual Studio 2017
33
4-
5- environment :
6- matrix :
7- - PlatformToolset : VS15
8- - PlatformToolset : VS17
9-
104platform :
115 - x64
12- - Any CPU
6+ - x86
137
148configuration :
159 - Release
1610 - Debug
1711
1812install :
1913 - if "%platform%"=="x64" set archi=amd64
20- - if "%platform%"=="x64" set platform_input=x64
21-
22- - if "%platform%"=="Any CPU" set archi=x86
23- - if "%platform%"=="Any CPU" set platform_input=Any CPU
24-
25- - if "%PlatformToolset%"=="VS15" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
26- - if "%PlatformToolset%"=="VS17" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
27-
14+ - if "%platform%"=="x86" set archi=x86
2815
2916build_script :
3017 - cd "%APPVEYOR_BUILD_FOLDER%"
31- - msbuild CodeStats.sln /m /p:configuration="%configuration%" /p:platform="%platform_input %" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
18+ - msbuild CodeStats.sln /m /p:configuration="%configuration%" /p:platform="%platform %" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
3219
3320after_build :
3421 - cd "%APPVEYOR_BUILD_FOLDER%"\CodeStats
3522 - ps : >-
3623
37- if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
24+ if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
3825 Push-AppveyorArtifact "bin\x64\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats.dll
3926 }
4027
41- if ($env:PLATFORM_INPUT -eq "Any CPU " -and $env:CONFIGURATION -eq "Release") {
28+ if ($env:PLATFORM -eq "x86 " -and $env:CONFIGURATION -eq "Release") {
4229 Push-AppveyorArtifact "bin\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats.dll
4330 }
4431
45- if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "VS17") {
46- if($env:PLATFORM_INPUT -eq "x64"){
47- $ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
48- Remove-Item bin\x64\$env:CONFIGURATION\*.exp
49- Remove-Item bin\x64\$env:CONFIGURATION\*.lib
50- 7z a $ZipFileName bin\x64\$env:CONFIGURATION\*
51- }
52- if($env:PLATFORM_INPUT -eq "Any CPU"){
53- $ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
54- Remove-Item bin\$env:CONFIGURATION\*.exp
55- Remove-Item bin\$env:CONFIGURATION\*.lib
56- 7z a $ZipFileName bin\$env:CONFIGURATION\*
32+ if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
33+ if ($env:PLATFORM -eq "x64" -or $env:PLATFORM -eq "x86") {
34+ $ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORM).zip"
35+ Remove-Item bin\$env:PLATFORM\$env:CONFIGURATION\*.exp
36+ Remove-Item bin\$env:PLATFORM\$env:CONFIGURATION\*.lib
37+ 7z a $ZipFileName bin\$env:PLATFORM\$env:CONFIGURATION\*
5738 }
5839 }
5940
@@ -71,5 +52,4 @@ deploy:
7152 force_update : true
7253 on :
7354 appveyor_repo_tag : true
74- PlatformToolset : VS17
7555 configuration : Release
0 commit comments