Skip to content
Permalink
Browse files

Update build script

  • Loading branch information
denikson committed Nov 9, 2019
1 parent 29e43db commit c1bf4b4e59af01d009e445e933ea5b9c673e7fd3
Showing with 12 additions and 2 deletions.
  1. +12 −2 build.cake
@@ -85,7 +85,7 @@ Task("Build")
}
});

const string DOORSTOP_VER = "2.11.1.0";
const string DOORSTOP_VER = "2.12.0.0";
const string DOORSTOP_DLL = "winhttp.dll";
Task("DownloadDoorstop")
.Does(() =>
@@ -134,6 +134,7 @@ Task("MakeDist")
CreateDirectory(bepinDir + Directory("plugins"));
CreateDirectory(bepinDir + Directory("patchers"));

CopyFiles("./doorstop/*.*", distArchDir);
CopyFiles("./bin/*.*", bepinDir + Directory("core"));
CopyFileToDirectory(doorstopArchPath, distArchDir);
FileWriteText(distArchDir + File("changelog.txt"), changelog);
@@ -160,11 +161,20 @@ Task("Pack")

if(isBleedingEdge)
{
var changelog = "";

if(!string.IsNullOrEmpty(lastBuildCommit)) {
changelog = TransformText("<ul><%changelog%></ul>")
.WithToken("changelog", RunGit($"--no-pager log --no-merges --pretty=\"format:<li>(<code>%h</code>) [%an] %s</li>\" {lastBuildCommit}..HEAD"))
.ToString();
}

FileWriteText(distDir + File("info.json"),
SerializeJsonPretty(new Dictionary<string, object>{
["id"] = buildId.ToString(),
["date"] = DateTime.Now.ToString("o"),
["changelog"] = "",
["changelog"] = changelog,
["hash"] = currentCommit,
["artifacts"] = new Dictionary<string, object>[] {
new Dictionary<string, object> {
["file"] = $"BepInEx_x64{commitPrefix}{buildVersion}.zip",

0 comments on commit c1bf4b4

Please sign in to comment.
You can’t perform that action at this time.