ShareX/AppVeyor/install.ps1
2016-09-22 04:17:00 +03:00

11 lines
311 B
PowerShell

$content = Get-Content "ShareX\Properties\AssemblyInfo.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"
}