mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
7 lines
235 B
PowerShell
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" |