forked from xamarin/android-activity-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
31 lines (23 loc) · 875 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
var target = Argument ("t", Argument ("target", "libs"));
var NUGET_VERSION = "0.1.0-beta2";
Task ("libs").Does (() => {
EnsureDirectoryExists ("./output");
NuGetRestore ("./Xamarin.Android.ActivityController.sln");
DotNetBuild ("./Xamarin.Android.ActivityController.sln", c => c.Configuration = "Release");
CopyFiles ("./**/bin/Release/*.dll", "./output");
});
Task ("nuget").IsDependentOn ("libs").Does (() => {
EnsureDirectoryExists ("./output");
NuGetPack ("./Xamarin.Android.ActivityController.nuspec", new NuGetPackSettings {
Version = NUGET_VERSION,
OutputDirectory = "./output"
});
});
Task ("clean").Does (() => {
CleanDirectories ("./**/bin");
CleanDirectories ("./**/obj");
CleanDirectories ("./**/packages");
CleanDirectories ("./**/output");
DeleteFiles ("./**/*.nupkg");
});
RunTarget (target);