ShareX/AppVeyor/install.ps1
2021-09-05 01:36:08 +03:00

11 lines
299 B
PowerShell

$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"
}