-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cake
34 lines (29 loc) · 850 Bytes
/
build.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Release");
Task("Clean")
.Does(() =>
{
EnsureDirectoryExists("build");
CleanDirectory($"build");
});
Task("Build")
.IsDependentOn("Clean")
.Does(() =>
{
DotNetPublish("Leditor/Leditor.csproj", new DotNetPublishSettings
{
Configuration = "Release",
PublishSingleFile = false,
SelfContained = false,
OutputDirectory = "build",
MSBuildSettings = new DotNetMSBuildSettings()
});
CreateDirectory("build/assets");
CopyDirectory("Leditor/assets", "build/assets");
CopyFile("imgui.ini", "build/imgui.ini");
CopyFile("LICENSE", "build/LICENSE");
CleanDirectory("build/logs");
CleanDirectory("build/levels");
CleanDirectory("build/projects");
});
RunTarget(target);