archi: bugfix - convert hash to SRI

This commit is contained in:
paumr 2024-04-04 18:32:47 +02:00
parent 776f2865fd
commit 36bb952746

View file

@ -18,7 +18,8 @@ for i in \
"x86_64-linux Archi-Linux64-$latestVersion.tgz" "x86_64-linux Archi-Linux64-$latestVersion.tgz"
do do
set -- $i set -- $i
hash=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/$2) prefetch=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/$2)
hash=$(nix-hash --type sha256 --to-sri $prefetch)
update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=$1 update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=$1
update-source-version archi $latestVersion $hash --system=$1 update-source-version archi $latestVersion $hash --system=$1