mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
appveyor: update versioning
This commit is contained in:
parent
12bcb6bb89
commit
76e71368ad
2 changed files with 16 additions and 12 deletions
|
|
@ -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"
|
||||
|
|
|
|||
24
appveyor.yml
24
appveyor.yml
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue