generate md5 & sha256 sum script added

sums updated accroding to new release v1.1.0
This commit is contained in:
Kingkor Roy Tirtho 2022-01-27 13:37:55 +06:00
parent fb083d9911
commit 7cbb9f4e64
5 changed files with 13 additions and 6 deletions

View File

@ -46,3 +46,6 @@ inno:
choco:
powershell cp build\installer\Spotube-windows-x86_64-setup.exe choco-struct\tools
powershell choco pack .\choco-struct\spotube.nuspec --outputdirectory build
gensums:
sh -c scripts/gensums.sh

View File

@ -7,6 +7,6 @@ pkgbase = spotube
license = BSD 4-Clause
depends = libkeybinder3
source = https://github.com/KRTirtho/spotube/releases/download/v1.1.0/Spotube-linux-x86_64.tar.xz
md5sums = 44f79f93ddaf6f0c4e7d133d2fe34bde
md5sums = 0db87627ddf753bc7f09ebbb282184ee
pkgname = spotube

View File

@ -21,7 +21,7 @@ install=
changelog=
source=("https://github.com/KRTirtho/spotube/releases/download/v${pkgver}/Spotube-linux-x86_64.tar.xz")
noextract=()
md5sums=(44f79f93ddaf6f0c4e7d133d2fe34bde)
md5sums=(0db87627ddf753bc7f09ebbb282184ee)
validpgpkeys=()
package(){

View File

@ -7,7 +7,7 @@ in verifying that this package's contents are trustworthy.
Please go to releases page
https://github.com/KRTirtho/spotube/releases
Download same version as this choco package (example for v1.0.1)
Download same version as this choco package (example for v1.1.0)
https://github.com/KRTirtho/spotube/releases/tag/v1.0.1
1. get hashes. Run:
@ -15,9 +15,9 @@ powershell -command Get-FileHash tools\Spotube-windows-x86_64-setup.exe
2. The checksums should match the following:
---
Version Hashes for v1.0.1
Version Hashes for v1.1.0
Algorithm Hash Path
--------- ---- ----
SHA256 85820A7169A2C265648D66D8950377C4C8FE11F677D2FE2B03DB5C2815BFEB6D tools\Spotube-windows-x86_64-setup.exe
SHA256 144fb4170b424ae9ecee8941354244cb9744c0913fdc69f730a8b5e40e56753d tools\Spotube-windows-x86_64-setup.exe

4
scripts/gensums.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/env bash
md5sum build/**/*.{AppImage,deb,tar.xz,dmg,exe,nupkg} >build/RELEASE.md5sum
sha256sum build/**/*.{AppImage,deb,tar.xz,dmg,exe,nupkg} >build/RELEASE.sha256sum
sed -i 's|build/Spotube-.*-Bundle/||' build/RELEASE.sha256sum build/RELEASE.md5sum