mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-19 12:11:52 +12: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"
|
|
} |