0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Adjust build script to place spt-related dlls inside a subflder inside /plugins/

This commit is contained in:
Dev 2023-07-16 22:19:29 +01:00
parent 3a19e0df56
commit de3ad49ecb

View File

@ -10,6 +10,7 @@ var delPaths = GetDirectories("./**/*(obj|bin)");
var licenseFile = "../LICENSE.md"; var licenseFile = "../LICENSE.md";
var managedFolder = string.Format("{0}/{1}/{2}", buildDir, "EscapeFromTarkov_Data", "Managed"); var managedFolder = string.Format("{0}/{1}/{2}", buildDir, "EscapeFromTarkov_Data", "Managed");
var bepInExPluginsFolder = string.Format("{0}/{1}/{2}", buildDir, "BepInEx", "plugins"); var bepInExPluginsFolder = string.Format("{0}/{1}/{2}", buildDir, "BepInEx", "plugins");
var bepInExPluginsSptFolder = string.Format("{0}/{1}", bepInExPluginsFolder, "spt");
var bepInExPatchersFolder = string.Format("{0}/{1}/{2}", buildDir, "BepInEx", "patchers"); var bepInExPatchersFolder = string.Format("{0}/{1}/{2}", buildDir, "BepInEx", "patchers");
var solutionPath = "./Modules.sln"; var solutionPath = "./Modules.sln";
@ -63,6 +64,7 @@ Task("CopyBuildData")
CleanDirectory(buildDir); CleanDirectory(buildDir);
CreateDirectory(managedFolder); CreateDirectory(managedFolder);
CreateDirectory(bepInExPluginsFolder); CreateDirectory(bepInExPluginsFolder);
CreateDirectory(bepInExPluginsSptFolder);
CreateDirectory(bepInExPatchersFolder); CreateDirectory(bepInExPatchersFolder);
CopyFile(licenseFile, string.Format("{0}/LICENSE-Modules.txt", buildDir)); CopyFile(licenseFile, string.Format("{0}/LICENSE-Modules.txt", buildDir));
}) })
@ -82,7 +84,7 @@ Task("CopyBuildData")
//Incase you want to see what is being copied for debuging //Incase you want to see what is being copied for debuging
//Spectre.Console.AnsiConsole.WriteLine(string.Format("Adding Module: {0}", dllPath.GetFilename())); //Spectre.Console.AnsiConsole.WriteLine(string.Format("Adding Module: {0}", dllPath.GetFilename()));
string moduleTransferPath = string.Format("{0}/{1}", bepInExPluginsFolder, dllPath.GetFilename()); string moduleTransferPath = string.Format("{0}/{1}", bepInExPluginsSptFolder, dllPath.GetFilename());
CopyFile(dllPath, moduleTransferPath); CopyFile(dllPath, moduleTransferPath);
} }