Skip to content

Commit 01c4cff

Browse files
committed
update appveyor script
1 parent 770a5d8 commit 01c4cff

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

appveyor.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.1.0.{build}
1+
version: build-{build}
22
image: Visual Studio 2017
33

44
platform:
@@ -18,24 +18,22 @@ build_script:
1818
- msbuild CodeStats.sln /m /p:configuration="%configuration%" /p:platform="%platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
1919

2020
after_build:
21-
- cd "%APPVEYOR_BUILD_FOLDER%"\CodeStats
21+
- cd "%APPVEYOR_BUILD_FOLDER%"
2222
- ps: >-
2323
2424
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
25-
Push-AppveyorArtifact "bin\x64\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats.dll
25+
Push-AppveyorArtifact "CodeStats\bin\x64\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats_x64.dll
2626
}
2727
2828
if ($env:PLATFORM -eq "x86" -and $env:CONFIGURATION -eq "Release") {
29-
Push-AppveyorArtifact "bin\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats.dll
29+
Push-AppveyorArtifact "CodeStats\bin\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats_x86.dll
3030
}
3131
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\*
38-
}
32+
if ($env:PLATFORM -eq "x64" -or $env:PLATFORM -eq "x86") {
33+
$ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORM).zip"
34+
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.exp
35+
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.lib
36+
7z a $ZipFileName CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*
3937
}
4038
4139
artifacts:

0 commit comments

Comments
 (0)