appveyor: update versioning

This commit is contained in:
Ioannis G 2020-05-09 00:19:17 +03:00
parent 12bcb6bb89
commit 76e71368ad
No known key found for this signature in database
GPG key ID: EAC0E4E5E36AC49E
2 changed files with 16 additions and 12 deletions

View file

@ -6,10 +6,10 @@ param(
Write-Host "Config: $config"
function Build-Version {
if ([string]::IsNullOrEmpty($env:APPVEYOR_BUILD_VERSION)) {
if ([string]::IsNullOrEmpty($env:flowVersion)) {
$v = (Get-Command ${TargetPath}).FileVersionInfo.FileVersion
} else {
$v = $env:APPVEYOR_BUILD_VERSION
$v = $env:flowVersion
}
Write-Host "Build Version: $v"

View file

@ -1,20 +1,24 @@
version: 1.0.{build}
version: '1.0.0.{build}'
init:
- ps: |
$version = new-object System.Version $env:APPVEYOR_BUILD_VERSION
$env:flowVersion = "{0}.{1}.{2}" -f $version.Major, $version.Minor, $version.Build
assembly_info:
patch: true
file: SolutionAssemblyInfo.cs
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
assembly_version: $(flowVersion)
assembly_file_version: $(flowVersion)
assembly_informational_version: $(flowVersion)
dotnet_csproj:
patch: true
file: 'Flow.*\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
version: $(flowVersion)
package_version: $(flowVersion)
assembly_version: $(flowVersion)
file_version: $(flowVersion)
informational_version: $(flowVersion)
skip_commits:
files: