Commit 87a679db authored by K900's avatar K900
Browse files

ryujinx: fix updater script hash format + some shellcheck warnings

parent c93724d2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
#! /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)"