mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
Update appveyor.yml
This commit is contained in:
parent
cf1578b82f
commit
234def8f86
13
appveyor.yml
13
appveyor.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue