From b20196557abf519843f67118ffe5b9b0069126e5 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Sun, 24 May 2020 08:26:55 -0500 Subject: [PATCH] (GH-2055) remove logs/config folder in nupkg When building choco for official release, Chocolatey uses the machine installation location for writing out logs and checking for the existence of a config file. When in a non-official release, it uses the output folder, which means it will be packaged up inside the package. This is bad because it later overwrites the existing log files, and it overwrites the config, resetting/removing any settings one may be depending on. This only affects a non-official release, or releases that are used for testing. Ensure the logs/config folders are removed and not packaged into the nuget packaging. --- .build.custom/nugetPrepare.post.step | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.build.custom/nugetPrepare.post.step b/.build.custom/nugetPrepare.post.step index 0af391a04b..f20f6f7b7b 100644 --- a/.build.custom/nugetPrepare.post.step +++ b/.build.custom/nugetPrepare.post.step @@ -12,7 +12,7 @@ - + @@ -48,4 +48,11 @@ + + + + + + +