diff --git a/AppVeyor/appveyor.yml b/AppVeyor/appveyor.yml index 360b2749e..35f5510c2 100644 --- a/AppVeyor/appveyor.yml +++ b/AppVeyor/appveyor.yml @@ -9,6 +9,8 @@ shallow_clone: true environment: APIKeys: secure: oWmEefxkbok87VNVsrUuXKgNaM4+j+EW6FBLsXwCbv3OVHgFvT0M9k4891OvYXDsj0oLuEn0oZeaeV8RrRDHA2Hk2acXHrWkg9z6FCGASxRMJjv0+in1v5DxN1BfEPdASmhnYFu6pcINmwibGYjsxySek57cbYUDc69yQfyqX6FUI0kQcEGp8Dh3tHF981Dy +install: +- ps: AppVeyor\install.ps1 before_build: - ps: AppVeyor\before_build.ps1 build: diff --git a/AppVeyor/install.ps1 b/AppVeyor/install.ps1 new file mode 100644 index 000000000..7366981e2 --- /dev/null +++ b/AppVeyor/install.ps1 @@ -0,0 +1,7 @@ +$content = Get-Content "D:\Dev\GitHub\ShareX\ShareX\ShareX\Properties\AssemblyInfo.cs" +$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)') +if ($match.Success) +{ + $env:AppVersion = $match.Groups[1].Value +} +Write-Host "Test: ShareX $env:AppVersion" \ No newline at end of file