ShareX/AppVeyor/install.ps1

10 lines
232 B
PowerShell

$content = Get-Content "ShareX\Properties\AssemblyInfo.cs"
$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)')
if ($match.Success)
{
$env:AppVersion = $match.Groups[1].Value
}
else
{
$env:AppVersion = "1.0.0"
}