2016-09-22 13:20:48 +12:00
|
|
|
version: 1.0.0.{build}
|
2022-02-05 20:30:40 +13:00
|
|
|
image: Visual Studio 2022
|
2016-08-26 05:18:57 +12:00
|
|
|
configuration:
|
2022-10-16 08:59:50 +13:00
|
|
|
- Release
|
|
|
|
- Debug
|
|
|
|
- Steam
|
|
|
|
- MicrosoftStore
|
2016-08-26 05:18:57 +12:00
|
|
|
platform: Any CPU
|
|
|
|
shallow_clone: true
|
2016-08-26 14:55:59 +12:00
|
|
|
environment:
|
|
|
|
APIKeys:
|
2017-03-29 08:56:17 +13:00
|
|
|
secure: oWmEefxkbok87VNVsrUuXKgNaM4+j+EW6FBLsXwCbv3OVHgFvT0M9k4891OvYXDsj0oLuEn0oZeaeV8RrRDHA87ap7oCyD5FQJaiZSTHgeE=
|
2016-09-22 11:33:30 +12:00
|
|
|
install:
|
2022-10-16 08:59:50 +13:00
|
|
|
- ps: |
|
2022-10-16 09:01:01 +13:00
|
|
|
$content = Get-Content "SharedAssemblyInfo.cs"
|
|
|
|
$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)')
|
2022-11-09 11:44:26 +13:00
|
|
|
$env:AppVersion = $match.Groups[1].Value
|
|
|
|
Update-AppveyorBuild -Version "$env:AppVersion.$env:APPVEYOR_BUILD_NUMBER"
|
2016-08-26 06:24:21 +12:00
|
|
|
before_build:
|
2022-10-16 08:59:50 +13:00
|
|
|
- ps: |
|
2022-10-16 09:01:01 +13:00
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
|
|
|
|
{
|
|
|
|
Invoke-WebRequest "$env:APIKeys" -OutFile "ShareX.UploadersLib\APIKeys\APIKeysLocal.cs"
|
|
|
|
}
|
2022-11-06 10:08:00 +13:00
|
|
|
nuget restore ShareX.sln -Verbosity quiet
|
2016-08-26 05:18:57 +12:00
|
|
|
build:
|
|
|
|
project: ShareX.sln
|
|
|
|
parallel: true
|
2016-08-26 09:25:12 +12:00
|
|
|
verbosity: minimal
|
2016-08-26 14:55:59 +12:00
|
|
|
after_build:
|
2022-10-16 08:59:50 +13:00
|
|
|
- ps: |
|
2022-10-16 09:01:01 +13:00
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
|
|
|
|
{
|
2022-11-15 03:47:45 +13:00
|
|
|
& "ShareX.Setup\bin\$env:CONFIGURATION\ShareX.Setup.exe" -silent -appveyor -job "$env:CONFIGURATION"
|
2022-10-16 09:01:01 +13:00
|
|
|
}
|
2016-08-26 09:25:12 +12:00
|
|
|
artifacts:
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-setup.exe
|
2022-10-16 08:59:50 +13:00
|
|
|
name: Setup
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-setup.exe.sha256
|
2022-10-16 08:59:50 +13:00
|
|
|
name: Setup-Checksum
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-portable.zip
|
2022-10-16 08:59:50 +13:00
|
|
|
name: Portable
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-portable.zip.sha256
|
2022-10-16 08:59:50 +13:00
|
|
|
name: Portable-Checksum
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-debug.zip
|
2022-10-23 18:50:38 +13:00
|
|
|
name: Debug
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-debug.zip.sha256
|
2022-10-23 18:50:38 +13:00
|
|
|
name: Debug-Checksum
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-Steam.zip
|
2022-10-16 08:59:50 +13:00
|
|
|
name: Steam
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*-Steam.zip.sha256
|
2022-10-23 16:51:55 +13:00
|
|
|
name: Steam-Checksum
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*.appx
|
2022-10-16 08:59:50 +13:00
|
|
|
name: MicrosoftStore
|
2022-11-15 03:47:45 +13:00
|
|
|
- path: ShareX-*.appx.sha256
|
2022-11-27 11:11:44 +13:00
|
|
|
name: MicrosoftStore-Checksum
|