forked from M2Team/Privexec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
22 lines (21 loc) · 905 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: 2.1.0.{build}
image: Visual Studio 2017
configuration: Release
platform: x64
clone_depth: 1
build:
project: Privexec.sln
verbosity: minimal
before_build:
- ps: >-
Write-Output "#define APPVEYOR_BUILD_NUMBER $env:APPVEYOR_BUILD_NUMBER`r`n#define APPVEYOR_BUILD_VERSION L`"$env:APPVEYOR_BUILD_VERSION (appveyor)`" `r`n">$env:APPVEYOR_BUILD_FOLDER\include\config.h
after_build:
- ps: >-
if ($env:PLATFORM -eq "x64") {
Compress-Archive -Path "Privexec\Privexec.json", "x64\${env:CONFIGURATION}\*.exe" -CompressionLevel Fastest -DestinationPath "Privexec_${env:PLATFORM}_${env:CONFIGURATION}.zip"
}
else {
Compress-Archive -Path "Privexec\Privexec.json", "${env:CONFIGURATION}\*.exe" -CompressionLevel Fastest -DestinationPath "Privexec_${env:PLATFORM}_${env:CONFIGURATION}.zip"
}
artifacts:
- path: Privexec_%PLATFORM%_%CONFIGURATION%.zip