Skip to content

Commit

Permalink
(build) Add verification of source scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gep13 committed Jun 14, 2024
1 parent 8f23ca2 commit 88fcb13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ Func<List<ILMergeConfig>> getILMergeConfigs = () =>

Func<FilePathCollection> 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"))
Expand Down

0 comments on commit 88fcb13

Please sign in to comment.