Skip to content

Commit 88fcb13

Browse files
committed
(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.
1 parent 8f23ca2 commit 88fcb13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipe.cake

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Func<List<ILMergeConfig>> getILMergeConfigs = () =>
8888

8989
Func<FilePathCollection> getScriptsToVerify = () =>
9090
{
91-
var scriptsToVerify = GetFiles(BuildParameters.Paths.Directories.NuGetNuspecDirectory + "/**/*.{ps1|psm1|psd1}") +
91+
var scriptsToVerify = GetFiles("./src/chocolatey.resources/**/*.{ps1|psm1|psd1}") +
92+
GetFiles(BuildParameters.Paths.Directories.NuGetNuspecDirectory + "/**/*.{ps1|psm1|psd1}") +
9293
GetFiles(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/**/*.{ps1|psm1|psd1}");
9394

9495
if (DirectoryExists(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "-no7zip"))

0 commit comments

Comments
 (0)