From 7cbb9f4e646dbb7c28dc90cfdbffa7bd4e453ae3 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 27 Jan 2022 13:37:55 +0600 Subject: [PATCH] generate md5 & sha256 sum script added sums updated accroding to new release v1.1.0 --- Makefile | 5 ++++- aur-struct/.SRCINFO | 2 +- aur-struct/PKGBUILD | 2 +- choco-struct/tools/VERIFICATION.txt | 6 +++--- scripts/gensums.sh | 4 ++++ 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 scripts/gensums.sh diff --git a/Makefile b/Makefile index 1e2f4a1b6..b505b6d21 100644 --- a/Makefile +++ b/Makefile @@ -45,4 +45,7 @@ inno: choco: powershell cp build\installer\Spotube-windows-x86_64-setup.exe choco-struct\tools - powershell choco pack .\choco-struct\spotube.nuspec --outputdirectory build \ No newline at end of file + powershell choco pack .\choco-struct\spotube.nuspec --outputdirectory build + +gensums: + sh -c scripts/gensums.sh diff --git a/aur-struct/.SRCINFO b/aur-struct/.SRCINFO index e5b4f7d07..7bad5ff07 100644 --- a/aur-struct/.SRCINFO +++ b/aur-struct/.SRCINFO @@ -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 diff --git a/aur-struct/PKGBUILD b/aur-struct/PKGBUILD index 528fff5d2..ab03262b4 100644 --- a/aur-struct/PKGBUILD +++ b/aur-struct/PKGBUILD @@ -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(){ diff --git a/choco-struct/tools/VERIFICATION.txt b/choco-struct/tools/VERIFICATION.txt index fd202a0ae..b24d0da23 100644 --- a/choco-struct/tools/VERIFICATION.txt +++ b/choco-struct/tools/VERIFICATION.txt @@ -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 \ No newline at end of file +SHA256 144fb4170b424ae9ecee8941354244cb9744c0913fdc69f730a8b5e40e56753d tools\Spotube-windows-x86_64-setup.exe \ No newline at end of file diff --git a/scripts/gensums.sh b/scripts/gensums.sh new file mode 100755 index 000000000..a60459acc --- /dev/null +++ b/scripts/gensums.sh @@ -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 \ No newline at end of file