mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
11 lines
No EOL
311 B
PowerShell
11 lines
No EOL
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"
|
|
} |