Skip to content

Commit 752b583

Browse files
committed
Refactor build.cake by removing unused tasks and simplifying the build process
1 parent 5d860f2 commit 752b583

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

build.cake

+11-24
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,19 @@ Task("Build")
2525
MSBuild("./source/FreeGameNotifications.sln", settings =>
2626
{
2727
settings.SetConfiguration(configuration);
28-
settings.WithTarget("Build");
29-
settings.ToolVersion = MSBuildToolVersion.VS2019;
30-
settings.Verbosity = Verbosity.Normal;
3128
});
3229
});
3330

34-
Task("UnzipToolbox")
35-
.Does(() =>
36-
{
37-
// Unzip toolbox.zip
38-
Information("Unzipping tools/toolbox.zip...");
39-
Unzip("./tools/toolbox.zip", "./tools/", true);
40-
});
41-
42-
Task("Pack")
43-
.IsDependentOn("Build")
44-
.IsDependentOn("UnzipToolbox")
45-
.Does(() =>
46-
{
47-
// Run toolbox.exe with parameters
48-
var outputDir = $"./source/bin/{configuration}";
49-
Information($"Running tools/toolbox.exe with parameters pack {outputDir} {outputDir}...");
50-
StartProcess("tools/toolbox.exe", new ProcessSettings
51-
{
52-
Arguments = $"pack {outputDir} {outputDir}"
53-
});
54-
});
31+
// Task("Pack")
32+
// .IsDependentOn("Build")
33+
// .Does(() =>
34+
// {
35+
// // Run toolbox.exe with parameters
36+
// var outputDir = $"./source/bin/{configuration}";
37+
// StartProcess("tools/toolbox.exe", new ProcessSettings
38+
// {
39+
// Arguments = $"pack {outputDir} {outputDir}"
40+
// });
41+
// });
5542

5643
RunTarget(target);

0 commit comments

Comments
 (0)