ryujinx: fix updater script hash format + some shellcheck warnings

This commit is contained in:
K900
2024-09-24 08:18:23 +03:00
parent c93724d2e6
commit 87a679db4d
+4 -2
View File
@@ -1,5 +1,6 @@
#! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl common-updater-scripts nix-prefetch-git jq
# shellcheck shell=bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
@@ -68,9 +69,10 @@ cd ../../../..
if [[ "${1-default}" != "--deps-only" ]]; then
SHA="$(nix-prefetch-git https://github.com/ryujinx/ryujinx --rev "$COMMIT" --quiet | jq -r '.sha256')"
update-source-version ryujinx "$NEW_VERSION" "$SHA" --rev="$COMMIT"
SRI=$(nix --experimental-features nix-command hash to-sri "sha256:$SHA")
update-source-version ryujinx "$NEW_VERSION" "$SRI" --rev="$COMMIT"
fi
echo "building Nuget lockfile"
$(nix-build -A ryujinx.fetch-deps --no-out-link)
eval "$(nix-build -A ryujinx.fetch-deps --no-out-link)"