mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Tweak pre-release package version
This commit is contained in:
parent
b68261a092
commit
199dbf7543
1 changed files with 13 additions and 1 deletions
|
@ -62,10 +62,22 @@ namespace LibHacBuild
|
|||
{
|
||||
AppVeyorVersion = $"{GitVersion.AssemblySemVer}-{GitVersion.PreReleaseTag}+{GitVersion.Sha.Substring(0, 8)}";
|
||||
|
||||
string suffix = GitVersion.PreReleaseTag;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(suffix))
|
||||
{
|
||||
if (!GitRepository.IsOnMasterBranch())
|
||||
{
|
||||
suffix = $"-{suffix}";
|
||||
}
|
||||
|
||||
suffix += $"+{GitVersion.Sha.Substring(0, 8)}";
|
||||
}
|
||||
|
||||
VersionProps = new Dictionary<string, object>
|
||||
{
|
||||
["VersionPrefix"] = GitVersion.AssemblySemVer,
|
||||
["VersionSuffix"] = GitVersion.PreReleaseTag
|
||||
["VersionSuffix"] = suffix
|
||||
};
|
||||
|
||||
Console.WriteLine($"Building version {AppVeyorVersion}");
|
||||
|
|
Loading…
Reference in a new issue