Skip to content

Commit 4e523bb

Browse files
committed
imp - Roll out hash sum in changelogs
--- As we promised yesterday, we've started rolling out hash sums in the releases section. --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1
1 parent 54de87a commit 4e523bb

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ jobs:
3838
cd tools ; cmd.exe /c "pack.cmd" ; cd ..
3939
cd tools ; cmd.exe /c "docgen.cmd" ; cd ..
4040
cd tools ; cmd.exe /c "docgen-pack.cmd" ; cd ..
41-
- name: Release Preparation
42-
id: release-asset
43-
shell: bash
44-
run: |
45-
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT"
46-
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT"
47-
cat CHANGES >> "$GITHUB_OUTPUT"
48-
echo 'EOF' >> "$GITHUB_OUTPUT"
4941
- name: Copying PE files (AMD64 and ARM64)...
5042
run: |
5143
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
@@ -81,6 +73,17 @@ jobs:
8173
$env:PATH += ";$env:WINPEROOT;$env:OSCDImgRoot\..\..\amd64\Oscdimg"
8274
& "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\MakeWinPEMedia.cmd" /ISO work-amd64 NKS_Live_amd64.iso
8375
& "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\MakeWinPEMedia.cmd" /ISO work-arm64 NKS_Live_arm64.iso
76+
- name: Release Preparation
77+
id: release-asset
78+
shell: bash
79+
run: |
80+
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT"
81+
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT"
82+
cat CHANGES >> "$GITHUB_OUTPUT"
83+
powershell 'Get-FileHash -Algorithm sha256 tools/*.zip | % {\"- \" + $_.Hash + \" \" + (Resolve-Path -Path $_.Path -Relative)}' >> "$GITHUB_OUTPUT"
84+
powershell 'Get-FileHash -Algorithm sha256 tools/*-changes.chg | % {\"- \" + $_.Hash + \" \" + (Resolve-Path -Path $_.Path -Relative)}' >> "$GITHUB_OUTPUT"
85+
powershell 'Get-FileHash -Algorithm sha256 *.iso | % {\"- \" + $_.Hash + \" \" + (Resolve-Path -Path $_.Path -Relative)}' >> "$GITHUB_OUTPUT"
86+
echo 'EOF' >> "$GITHUB_OUTPUT"
8487
- name: Binary Attestation (binaries)
8588
uses: actions/attest-build-provenance@v1
8689
with:
@@ -97,7 +100,6 @@ jobs:
97100
files: |
98101
tools/*.zip
99102
tools/*-changes.chg
100-
tools/hashsums.txt
101103
*.iso
102104
- name: Notify build
103105
uses: tsickert/[email protected]

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ Review the commit history if you want to get a deep insight about the changes.
1313
### Feedback?
1414

1515
If you have issues with this version, report to us by [making a new issue ticket](https://github.com/Aptivi/NitrocidKS/issues/new).
16+
17+
### Sum hashes
18+
19+
To verify integrity of your download, compare the SHA256 sum of your downloaded file with the following information:
20+

tools/pack.cmd

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ echo There was an error trying to pack binary (%errorlevel%).
3232
goto :finished
3333

3434
:complete
35-
REM Necessary for Chocolatey
36-
echo ---------------------------------------------------------------
37-
echo SHA256 sums of packed zip files for Chocolatey packaging
38-
"%ProgramFiles%\7-Zip\7z.exe" h -scrcSHA256 %temp%\%ksversion%-bin.zip >> hashsums.txt
39-
"%ProgramFiles%\7-Zip\7z.exe" h -scrcSHA256 %temp%\%ksversion%-bin-lite.zip >> hashsums.txt
40-
type hashsums.txt
41-
echo ---------------------------------------------------------------
42-
echo Finalizing...
43-
4435
REM Move to the current directory
4536
move %temp%\%ksversion%-bin.zip
4637
move %temp%\%ksversion%-bin-lite.zip

tools/pack.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ if [ ! $? == 0 ]; then
4545
fi
4646

4747
# Inform success
48-
echo "---------------------------------------------------------------"
49-
echo SHA256 sums of packed zip files for Chocolatey packaging
50-
"$shapath" /tmp/$ksversion-bin.zip >> hashsums.txt
51-
"$shapath" /tmp/$ksversion-bin-lite.zip >> hashsums.txt
52-
cat hashsums.txt
53-
echo "---------------------------------------------------------------"
54-
echo Finalizing...
55-
5648
mv /tmp/$ksversion-bin.zip .
5749
mv /tmp/$ksversion-bin-lite.zip .
5850
mv /tmp/$ksversion-addons.zip .

0 commit comments

Comments
 (0)