Update appveyor.yml

This commit is contained in:
Jaex 2022-11-09 01:44:26 +03:00
parent cf1578b82f
commit 234def8f86

View file

@ -14,15 +14,8 @@ install:
- ps: |
$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"
}
$env:AppVersion = $match.Groups[1].Value
Update-AppveyorBuild -Version "$env:AppVersion.$env:APPVEYOR_BUILD_NUMBER"
before_build:
- ps: |
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
@ -38,7 +31,7 @@ after_build:
- ps: |
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
{
& "ShareX.Setup\bin\$env:CONFIGURATION\ShareX.Setup.exe" -Silent -Job "$env:CONFIGURATION"
& "ShareX.Setup\bin\$env:CONFIGURATION\ShareX.Setup.exe" -silent -job "$env:CONFIGURATION"
}
artifacts:
- path: Output\ShareX-*-setup.exe