-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cake
More file actions
34 lines (26 loc) · 907 Bytes
/
build.cake
File metadata and controls
34 lines (26 loc) · 907 Bytes
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", "Default");
//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////
// Define directories.
var buildDir = Directory("./.build");
//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////
Task("Clean")
.Does(() =>{
EnsureDirectoryExists(buildDir);
CleanDirectory(buildDir);
});
Task("Default")
.IsDependentOn("Clean")
.Does(() =>
{
var chocolateyPackSettings = new ChocolateyPackSettings {};
var nuspecFiles = GetFiles("**/*.nuspec");
ChocolateyPack(nuspecFiles, chocolateyPackSettings);
var nupkgFiles = GetFiles("**/*.nupkg");
MoveFiles(nupkgFiles, buildDir);
DeleteFile("./.build/Cake.nupkg");
});
RunTarget(target);