mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Allow giving special versions to build script
This commit is contained in:
1 parent
e473f08e0a
commit
ec79ad057b
1 file changed
+5
@@ -12,6 +12,7 @@ var cleanDependencyCache = Argument("clean_build_cache", false);
|
||||
var lastBuildCommit = Argument("last_build_commit", "");
|
||||
var nugetPushSource = Argument("nuget_push_source", "https://nuget.bepinex.dev/v3/index.json");
|
||||
var nugetPushKey = Argument("nuget_push_key", "");
|
||||
var customBuildVersion = Argument("build_version", "");
|
||||
|
||||
var buildVersion = "";
|
||||
var currentCommit = RunGit("rev-parse HEAD");
|
||||
@@ -69,6 +70,10 @@ Task("Build")
|
||||
buildSettings.MSBuildSettings.Properties["AssemblyVersion"] = new[] { buildVersion + "." + buildId };
|
||||
buildVersion += "-be." + buildId;
|
||||
buildSettings.MSBuildSettings.Properties["Version"] = new[] { buildVersion };
|
||||
} else if (!string.IsNullOrEmpty(customBuildVersion))
|
||||
{
|
||||
buildVersion = customBuildVersion;
|
||||
buildSettings.MSBuildSettings.Properties["Version"] = new[] { buildVersion };
|
||||
}
|
||||
|
||||
foreach (var file in GetFiles("./BepInEx.*/*.csproj"))
|
||||
|
||||
Reference in new issue
Block a user