Ensure package dir is created
This commit is contained in:
Родитель
3639c217e4
Коммит
768e4e48d3
|
@ -258,6 +258,7 @@ var FrameworkFiles = new FilePath[]
|
||||||
Task("PackageSource")
|
Task("PackageSource")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
CreateDirectory(PACKAGE_DIR);
|
||||||
RunGitCommand(string.Format("archive -o {0} HEAD", SRC_PACKAGE));
|
RunGitCommand(string.Format("archive -o {0} HEAD", SRC_PACKAGE));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -294,6 +295,7 @@ Task("PackageZip")
|
||||||
.IsDependentOn("CreateImage")
|
.IsDependentOn("CreateImage")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
CreateDirectory(PACKAGE_DIR);
|
||||||
Zip(MakeAbsolute(Directory(IMAGE_DIR)), File(ZIP_PACKAGE));
|
Zip(MakeAbsolute(Directory(IMAGE_DIR)), File(ZIP_PACKAGE));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -301,6 +303,7 @@ Task("PackageNuGet")
|
||||||
.IsDependentOn("CreateImage")
|
.IsDependentOn("CreateImage")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
|
CreateDirectory(PACKAGE_DIR);
|
||||||
NuGetPack("nuget/nunit.nuspec", new NuGetPackSettings()
|
NuGetPack("nuget/nunit.nuspec", new NuGetPackSettings()
|
||||||
{
|
{
|
||||||
Version = PACKAGE_VERSION,
|
Version = PACKAGE_VERSION,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче