mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
More build versioning changes #865
This commit is contained in:
parent
302f7ca285
commit
2535645a90
6 changed files with 36 additions and 26 deletions
13
build.cake
13
build.cake
|
@ -58,7 +58,7 @@ Task("Clean")
|
|||
.Does(() =>
|
||||
{
|
||||
CleanDirectory(buildDir);
|
||||
CleanDirectory(nodeModulesDir);
|
||||
//CleanDirectory(nodeModulesDir);
|
||||
CleanDirectory(wwwRootDistDir);
|
||||
});
|
||||
|
||||
|
@ -80,8 +80,15 @@ Task("SetVersionInfo")
|
|||
|
||||
Information("GitResults -> {0}", versionInfo.Dump());
|
||||
|
||||
buildSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.BuildMetaData);
|
||||
publishSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.BuildMetaData);
|
||||
var fullVer = versionInfo.MajorMinorPatch + "-" + versionInfo.BranchName + "-" + versionInfo.BuildMetaData;
|
||||
|
||||
|
||||
buildSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.AssemblySemVer);
|
||||
buildSettings.ArgumentCustomization = args => args.Append("/p:FullVer=" + fullVer);
|
||||
publishSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.AssemblySemVer);
|
||||
publishSettings.ArgumentCustomization = args => args.Append("/p:FullVer=" + fullVer);
|
||||
buildSettings.VersionSuffix = versionInfo.BranchName;
|
||||
publishSettings.VersionSuffix = versionInfo.BranchName;
|
||||
});
|
||||
|
||||
Task("Restore")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue