From d2bfb229475beb9629a8a89d0e6eb3bfe5bc5344 Mon Sep 17 00:00:00 2001 From: Bepis <36346617+bbepis@users.noreply.github.com> Date: Mon, 9 Nov 2020 00:27:55 +1100 Subject: [PATCH] Fix indentation issues in cake script --- build.cake | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/build.cake b/build.cake index 295724e..5b6dbbe 100644 --- a/build.cake +++ b/build.cake @@ -75,10 +75,10 @@ Task("Build") //buildSettings.Properties["TargetFrameworks"] = new []{ "net35" }; MSBuild("./BepInEx.Unity/BepInEx.Unity.csproj", buildSettings); - + //buildSettings.Properties["TargetFrameworks"] = new []{ "net452" }; MSBuild("./BepInEx.NetLauncher/BepInEx.NetLauncher.csproj", buildSettings); - + //buildSettings.Properties["TargetFrameworks"] = new []{ "net472" }; MSBuild("./BepInEx.IL2CPP/BepInEx.IL2CPP.csproj", buildSettings); }) @@ -158,19 +158,19 @@ Task("MakeDist") void PackageBepin(string platform, string arch, string originDir, string doorstopConfigFile = null, bool copyMono = false) { - string platformName = platform + (arch == null ? "" : "_" + arch); - bool isUnix = arch == "unix"; + string platformName = platform + (arch == null ? "" : "_" + arch); + bool isUnix = arch == "unix"; - Information("Creating distributions for platform \"" + platformName + "\"..."); - - string doorstopArchPath = null; - - if (arch != null) - { + Information("Creating distributions for platform \"" + platformName + "\"..."); + + string doorstopArchPath = null; + + if (arch != null) + { doorstopArchPath = doorstopPath + Directory(arch) + File(isUnix ? "*.*" : DOORSTOP_DLL); - } - + } + var distArchDir = distDir + Directory(platformName); var bepinDir = distArchDir + Directory("BepInEx"); var doorstopDir = distArchDir; @@ -182,10 +182,10 @@ Task("MakeDist") CreateDirectory(bepinDir + Directory("plugins")); CreateDirectory(bepinDir + Directory("patchers")); - if (doorstopArchPath != null) - { - CopyFile("./doorstop/" + doorstopConfigFile, Directory(distArchDir) + File(isUnix ? "run_bepinex.sh" : "doorstop_config.ini")); - CopyFiles(doorstopArchPath, doorstopDir); + if (doorstopArchPath != null) + { + CopyFile("./doorstop/" + doorstopConfigFile, Directory(distArchDir) + File(isUnix ? "run_bepinex.sh" : "doorstop_config.ini")); + CopyFiles(doorstopArchPath, doorstopDir); if (isUnix) { @@ -196,7 +196,7 @@ Task("MakeDist") { CopyDirectory("./bin/doorstop/mono/" + arch + "/mono", Directory(distArchDir) + Directory("mono")); } - } + } CopyFiles("./bin/" + Directory(originDir) + "/*.*", Directory(bepinDir) + Directory("core"));