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\(\"(.+?)\"\)')
|
|
|
|
if ($match.Success)
|
|
|
|
{
|
|
|
|
$env:AppVersion = $match.Groups[1].Value
|
|
|
|
Update-AppveyorBuild -Version "$env:AppVersion.$env:APPVEYOR_BUILD_NUMBER"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$env:AppVersion = "1.0.0"
|
|
|
|
}
|
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"
|
|
|
|
}
|
|
|
|
nuget restore ShareX.sln
|
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-06 09:54:09 +13:00
|
|
|
& "ShareX.Setup\bin\$env:CONFIGURATION\ShareX.Setup.exe" -AppVeyor -Job "$env:CONFIGURATION"
|
2022-10-16 09:01:01 +13:00
|
|
|
}
|
2016-08-26 09:25:12 +12:00
|
|
|
artifacts:
|
2022-10-16 08:59:50 +13:00
|
|
|
- path: ShareX-*-setup.exe
|
|
|
|
name: Setup
|
|
|
|
- path: ShareX-*-setup.exe.sha256
|
|
|
|
name: Setup-Checksum
|
|
|
|
- path: ShareX-*-portable.zip
|
|
|
|
name: Portable
|
|
|
|
- path: ShareX-*-portable.zip.sha256
|
|
|
|
name: Portable-Checksum
|
2022-10-23 18:50:38 +13:00
|
|
|
- path: ShareX-*-debug.zip
|
|
|
|
name: Debug
|
|
|
|
- path: ShareX-*-debug.zip.sha256
|
|
|
|
name: Debug-Checksum
|
2022-10-16 08:59:50 +13:00
|
|
|
- path: ShareX-*-Steam.zip
|
|
|
|
name: Steam
|
2022-10-23 16:46:32 +13:00
|
|
|
- path: ShareX-*-Steam.zip.sha256
|
2022-10-23 16:51:55 +13:00
|
|
|
name: Steam-Checksum
|
2022-10-16 08:59:50 +13:00
|
|
|
- path: ShareX-*.appx
|
|
|
|
name: MicrosoftStore
|
2022-10-23 16:50:40 +13:00
|
|
|
- path: ShareX-*.appx.sha256
|
2022-10-23 16:51:55 +13:00
|
|
|
name: MicrosoftStore-Checksum
|
2016-09-23 12:13:56 +12:00
|
|
|
deploy:
|
2022-09-19 23:02:15 +12:00
|
|
|
- provider: GitHub
|
|
|
|
tag: v$(APPVEYOR_BUILD_VERSION)
|
|
|
|
release: ShareX $(APPVEYOR_BUILD_VERSION) Dev
|
|
|
|
description: "Dev build"
|
|
|
|
auth_token:
|
|
|
|
secure: bbUkNvyu1jnKkuZGlM1ois3MkmpCMlm3Lv68L9V5AYepHt1SG4ZQ15ZoKfjOFg9R
|
|
|
|
repository: ShareX/DevBuilds
|
2022-10-23 18:50:38 +13:00
|
|
|
artifact: Setup, Setup-Checksum, Portable, Portable-Checksum, Debug, Debug-Checksum, Steam, Steam-Checksum, MicrosoftStore, MicrosoftStore-Checksum
|
2022-09-19 23:02:15 +12:00
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
branch: develop
|
2022-02-05 19:06:21 +13:00
|
|
|
- provider: GitHub
|
|
|
|
tag: $(APPVEYOR_REPO_TAG_NAME)
|
|
|
|
release: ShareX $(AppVersion)
|
|
|
|
description: "[Changelog](https://getsharex.com/changelog)"
|
|
|
|
auth_token:
|
|
|
|
secure: bbUkNvyu1jnKkuZGlM1ois3MkmpCMlm3Lv68L9V5AYepHt1SG4ZQ15ZoKfjOFg9R
|
2022-10-23 16:58:34 +13:00
|
|
|
artifact: Setup, Setup-Checksum, Portable, Portable-Checksum
|
2022-02-05 19:06:21 +13:00
|
|
|
draft: false
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
configuration: Release
|
|
|
|
appveyor_repo_tag: true
|