Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-312) Add package verification for Chocolatey checks #329

Merged
merged 5 commits into from
Jul 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Boxstarter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BuildScripts", "BuildScript
BuildScripts\releaseNotes.xml = BuildScripts\releaseNotes.xml
BuildScripts\setup.bat = BuildScripts\setup.bat
BuildScripts\setup.ps1 = BuildScripts\setup.ps1
BuildScripts\VERIFICATION.txt = BuildScripts\VERIFICATION.txt
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9934F8F4-B4E6-4C70-8BEA-30CCF926284A}"
Expand Down
8 changes: 8 additions & 0 deletions BuildScripts/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community in verifying that this package's contents are trustworthy.

To verify the files using the project source:

1. Please go to the project source location (https://github.com/chocolatey/boxstarter);
2. Download the source files for the module you want to verify. Make sure the version of the file you download is the same version as the files from the package you want to verify;
3. For each source file use Get-FileHash -Path <FILE TO VERIFY> to get the file hash value from both the downloaded file (from step 1 above) and the file from the package and compare them;
1 change: 1 addition & 0 deletions BuildScripts/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ task Copy-PowerShellFiles -depends Clean-Artifacts {
Copy-Item -Path $basedir\BuildScripts\nuget\Boxstarter.Azure.PreInstall.ps1 -Destination $tempNuGetDirectory
Copy-Item -Path $basedir\BuildScripts\BoxstarterChocolateyInstall.ps1 -Destination $tempNuGetDirectory
Copy-Item -Path $basedir\BoxstarterShell.ps1 -Destination $tempNuGetDirectory
Copy-Item -Path $basedir\BuildScripts\VERIFICATION.txt -Destination $tempNuGetDirectory

Copy-Item -Path $basedir\Boxstarter.Azure\* -Recurse -Destination $tempNuGetDirectory\Boxstarter.Azure -Exclude $exclude
Copy-Item -Path $basedir\Boxstarter.Bootstrapper\* -Recurse -Destination $tempNuGetDirectory\Boxstarter.Bootstrapper -Exclude $exclude
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.Azure.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.Azure.PreInstall.ps1" target="tools" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.Bootstrapper.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.Bootstrapper\**\*.*" target="tools\Boxstarter.Bootstrapper" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.Chocolatey.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<file src="..\..\boxstarter.config" target="tools" />
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\BoxstarterShell.ps1" target="tools" />
<file src="..\..\BoxLogo.ico" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.Chocolatey\**\*.*" target="tools\Boxstarter.Chocolatey" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.Common.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.Common\**\*.*" target="tools\Boxstarter.Common" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.HyperV.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.HyperV\**\*.*" target="tools\Boxstarter.HyperV" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.TestRunner.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.TestRunner\**\*.*" target="tools\Boxstarter.TestRunner" />
Expand Down
1 change: 1 addition & 0 deletions BuildScripts/nuget/Boxstarter.WinConfig.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<files>
<file src="..\..\LICENSE.txt" target="tools" />
<file src="..\..\NOTICE.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\VERIFICATION.txt" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\chocolateyinstall.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Setup.ps1" target="tools" />
<file src="..\..\buildArtifacts\tempNuGetFolders\Boxstarter.WinConfig\**\*.*" target="tools\Boxstarter.WinConfig" />
Expand Down