archi: bugfix - convert hash to SRI
This commit is contained in:
parent
776f2865fd
commit
36bb952746
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue