Merge pull request #301595 from paumr/archi_update-fix-hash
archi: fix hash in update script
This commit is contained in:
commit
bf3cf684d6
|
@ -12,14 +12,15 @@ if [[ "$latestVersion" == "$currentVersion" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hash_aarch64_darwin=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/Archi-Mac-Silicon-$latestVersion.dmg)
|
for i in \
|
||||||
hash_x86_64_darwin=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/Archi-Mac-$latestVersion.dmg)
|
"aarch64-darwin Archi-Mac-Silicon-$latestVersion.dmg" \
|
||||||
hash_x86_64_linux=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/Archi-Linux64-$latestVersion.tgz)
|
"x86_64-darwin Archi-Mac-$latestVersion.dmg" \
|
||||||
|
"x86_64-linux Archi-Linux64-$latestVersion.tgz"
|
||||||
update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=aarch64-darwin
|
do
|
||||||
update-source-version archi $latestVersion $hash_aarch64_darwin --system=aarch64-darwin
|
set -- $i
|
||||||
update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=x86_64-darwin
|
prefetch=$(nix-prefetch-url https://www.archimatetool.com/downloads/archi/$latestVersion/$2)
|
||||||
update-source-version archi $latestVersion $hash_x86_64_darwin --system=x86_64-darwin
|
hash=$(nix-hash --type sha256 --to-sri $prefetch)
|
||||||
update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=x86_64-linux
|
|
||||||
update-source-version archi $latestVersion $hash_x86_64_linux --system=x86_64-linux
|
|
||||||
|
|
||||||
|
update-source-version archi 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system=$1
|
||||||
|
update-source-version archi $latestVersion $hash --system=$1
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user