mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Tweak pre-release package version
This commit is contained in:
parent
b68261a092
commit
199dbf7543
@ -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…
x
Reference in New Issue
Block a user