mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Get version from AssemblyInfo.cs and set environment variable
This commit is contained in:
parent
f6a9017bd3
commit
bcc4851f57
|
@ -9,6 +9,8 @@ shallow_clone: true
|
||||||
environment:
|
environment:
|
||||||
APIKeys:
|
APIKeys:
|
||||||
secure: oWmEefxkbok87VNVsrUuXKgNaM4+j+EW6FBLsXwCbv3OVHgFvT0M9k4891OvYXDsj0oLuEn0oZeaeV8RrRDHA2Hk2acXHrWkg9z6FCGASxRMJjv0+in1v5DxN1BfEPdASmhnYFu6pcINmwibGYjsxySek57cbYUDc69yQfyqX6FUI0kQcEGp8Dh3tHF981Dy
|
secure: oWmEefxkbok87VNVsrUuXKgNaM4+j+EW6FBLsXwCbv3OVHgFvT0M9k4891OvYXDsj0oLuEn0oZeaeV8RrRDHA2Hk2acXHrWkg9z6FCGASxRMJjv0+in1v5DxN1BfEPdASmhnYFu6pcINmwibGYjsxySek57cbYUDc69yQfyqX6FUI0kQcEGp8Dh3tHF981Dy
|
||||||
|
install:
|
||||||
|
- ps: AppVeyor\install.ps1
|
||||||
before_build:
|
before_build:
|
||||||
- ps: AppVeyor\before_build.ps1
|
- ps: AppVeyor\before_build.ps1
|
||||||
build:
|
build:
|
||||||
|
|
7
AppVeyor/install.ps1
Normal file
7
AppVeyor/install.ps1
Normal file
|
@ -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"
|
Loading…
Reference in a new issue