From 0f97dd60497e29425734de5db7d3737dec24108a Mon Sep 17 00:00:00 2001 From: Dirk Rombauts Date: Wed, 30 Dec 2015 17:52:09 +0100 Subject: [PATCH] Update nuget build scripts --- chocolatey.fsx | 43 +++++++++++++++++++++++++++++++++++++++++-- nuget.fsx | 46 +++++++++++++++++++++++++++++++++++++--------- 2 files changed, 78 insertions(+), 11 deletions(-) diff --git a/chocolatey.fsx b/chocolatey.fsx index 08df1a3f3..4c09a9e26 100644 --- a/chocolatey.fsx +++ b/chocolatey.fsx @@ -18,7 +18,22 @@ Target "Clean" (fun _ -> Target "CreatePackage CMD" (fun _ -> - CopyFiles packagingDir [cmdDir + "Pickles.exe"; cmdDir + "NLog.config"] + CopyFiles packagingDir [ + cmdDir + "Autofac.dll"; + cmdDir + "AutoMapper.dll"; + cmdDir + "ClosedXML.dll"; + cmdDir + "DocumentFormat.OpenXml.dll"; + cmdDir + "Gherkin.dll"; + cmdDir + "MarkdownDeep.dll"; + cmdDir + "NDesk.Options.dll"; + cmdDir + "Newtonsoft.Json.dll"; + cmdDir + "NGenerics.dll"; + cmdDir + "NLog.dll"; + cmdDir + "PicklesDoc.Pickles.Library.dll"; + cmdDir + "System.IO.Abstractions.dll"; + cmdDir + "pickles.exe"; + cmdDir + "NLog.config" ] + WriteFile (packagingDir + "version.ps1") [("$version = \"" + version + "\"")] NuGet (fun p -> {p with @@ -31,7 +46,31 @@ Target "CreatePackage CMD" (fun _ -> Target "CreatePackage GUI" (fun _ -> - CopyFiles packagingDir [guiDir + "picklesui.exe"; guiDir + "NLog.config"; guiDir + "PicklesUI.exe.config"] + CopyFiles packagingDir [ + guiDir + "Autofac.dll"; + guiDir + "AutoMapper.dll"; + guiDir + "ClosedXML.dll"; + guiDir + "DocumentFormat.OpenXml.dll"; + guiDir + "GalaSoft.MvvmLight.dll"; + guiDir + "GalaSoft.MvvmLight.Extras.dll"; + guiDir + "GalaSoft.MvvmLight.Platform.dll"; + guiDir + "Gherkin.dll"; + guiDir + "MahApps.Metro.dll"; + guiDir + "MarkdownDeep.dll"; + guiDir + "Microsoft.Practices.ServiceLocation.dll"; + guiDir + "NDesk.Options.dll"; + guiDir + "Newtonsoft.Json.dll"; + guiDir + "NGenerics.dll"; + guiDir + "NLog.dll"; + guiDir + "NlogViewer.dll"; + guiDir + "Ookii.Dialogs.Wpf.dll"; + guiDir + "PicklesDoc.Pickles.Library.dll"; + guiDir + "System.IO.Abstractions.dll"; + guiDir + "System.Windows.Interactivity.dll"; + guiDir + "picklesui.exe"; + guiDir + "NLog.config"; + guiDir + "PicklesUI.exe.config"] + WriteFile (packagingDir + "version.ps1") [("$version = \"" + version + "\"")] WriteFile (packagingDir + "picklesui.exe.gui") [("")] NuGet (fun p -> diff --git a/nuget.fsx b/nuget.fsx index 41d079043..755417c7c 100644 --- a/nuget.fsx +++ b/nuget.fsx @@ -20,27 +20,55 @@ Target "Clean" (fun _ -> Target "CreatePackageCommandLine" (fun _ -> // Copy all the package files into a package folder - CopyFiles packagingDir [cmdDir + "pickles.exe"; cmdDir + "NLog.config" ] + CopyFiles packagingDir [ + cmdDir + "Autofac.dll"; + cmdDir + "AutoMapper.dll"; + cmdDir + "ClosedXML.dll"; + cmdDir + "DocumentFormat.OpenXml.dll"; + cmdDir + "Gherkin.dll"; + cmdDir + "MarkdownDeep.dll"; + cmdDir + "NDesk.Options.dll"; + cmdDir + "Newtonsoft.Json.dll"; + cmdDir + "NGenerics.dll"; + cmdDir + "NLog.dll"; + cmdDir + "PicklesDoc.Pickles.Library.dll"; + cmdDir + "System.IO.Abstractions.dll"; + cmdDir + "pickles.exe"; + cmdDir + "NLog.config" ] - NuGet (fun p -> + NuGet (fun p -> {p with OutputPath = deployDir WorkingDir = packagingDir Version = version - Publish = false }) + Publish = false }) "src/Pickles/Pickles.CommandLine/Pickles.CommandLine.nuspec" ) Target "CreatePackageMsBuild" (fun _ -> // Copy all the package files into a package folder - CopyFiles packagingDir [msBuildDir + "PicklesDoc.Pickles.MSBuild.Tasks.dll"; msBuildDir + "build/Pickles.MSBuild.targets";] + CopyFiles packagingDir [ + msBuildDir + "Autofac.dll"; + msBuildDir + "AutoMapper.dll"; + msBuildDir + "ClosedXML.dll"; + msBuildDir + "DocumentFormat.OpenXml.dll"; + msBuildDir + "Gherkin.dll"; + msBuildDir + "MarkdownDeep.dll"; + msBuildDir + "NDesk.Options.dll"; + msBuildDir + "Newtonsoft.Json.dll"; + msBuildDir + "NGenerics.dll"; + msBuildDir + "NLog.dll"; + msBuildDir + "PicklesDoc.Pickles.Library.dll"; + msBuildDir + "System.IO.Abstractions.dll"; + msBuildDir + "PicklesDoc.Pickles.MSBuild.Tasks.dll"; + msBuildDir + "build/Pickles.MSBuild.targets";] - NuGet (fun p -> + NuGet (fun p -> {p with OutputPath = deployDir WorkingDir = packagingDir Version = version - Publish = false }) + Publish = false }) "src/Pickles/Pickles.MSBuild/Pickles.MSBuild.nuspec" ) @@ -62,16 +90,16 @@ Target "CreatePackagePowerShell" (fun _ -> powerShellDir + "System.IO.Abstractions.dll"; "src/Pickles/Pickles.PowerShell/init.ps1" ] - NuGet (fun p -> + NuGet (fun p -> {p with OutputPath = deployDir WorkingDir = packagingDir Version = version - Publish = false }) + Publish = false }) "src/Pickles/Pickles.PowerShell/Pickles.nuspec" ) -Target "CreatePackage" (fun _ -> +Target "CreatePackage" (fun _ -> trace ("Starting build of nuget packages version " + version) DeleteDir packagingDir )