ShareX/AppVeyor/install.ps1
2016-09-22 02:37:08 +03:00

7 lines
235 B
PowerShell

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