Skip to content

Commit

Permalink
Update nuget build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Rombauts committed Dec 30, 2015
1 parent 094647c commit 0f97dd6
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 11 deletions.
43 changes: 41 additions & 2 deletions chocolatey.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ->
Expand Down
46 changes: 37 additions & 9 deletions nuget.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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
)
Expand Down

0 comments on commit 0f97dd6

Please sign in to comment.