From 88fcb138f46681c514e834e8561205b0815f85f6 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Fri, 14 Jun 2024 01:42:20 -0700 Subject: [PATCH] (build) Add verification of source scripts Since these files are not copied to the output folder, and instead are added to the choco.exe as resources, we need to additional verify each script file from the source location, in the same way that they are selected when they are being signed. --- recipe.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe.cake b/recipe.cake index 9bdbb6dc49..017d2baca6 100644 --- a/recipe.cake +++ b/recipe.cake @@ -88,7 +88,8 @@ Func> getILMergeConfigs = () => Func getScriptsToVerify = () => { - var scriptsToVerify = GetFiles(BuildParameters.Paths.Directories.NuGetNuspecDirectory + "/**/*.{ps1|psm1|psd1}") + + var scriptsToVerify = GetFiles("./src/chocolatey.resources/**/*.{ps1|psm1|psd1}") + + GetFiles(BuildParameters.Paths.Directories.NuGetNuspecDirectory + "/**/*.{ps1|psm1|psd1}") + GetFiles(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/**/*.{ps1|psm1|psd1}"); if (DirectoryExists(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "-no7zip"))