ryujinx: fix updater script hash format + some shellcheck warnings
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user