Commit 4c9da605 authored by K900's avatar K900
Browse files

yuzu-ea: fix update script

Somehow, nix-prefetch-git crashes when ran without --quiet and with stderr redirected
parent 20aa41fb
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ log "Unpacking dist..."
tar xf "$eaDist"/*.tar.xz --directory="$eaDistUnpacked" --strip-components=1

log "Rehydrating..."
eaFullHash="$(nix-prefetch-git --fetch-submodules "$eaDistUnpacked" | jq -r '.sha256')"
eaFullHash="$(nix-prefetch-git --fetch-submodules --quiet "$eaDistUnpacked" | jq -r '.sha256')"

cat >sources.nix <<EOF
# Generated by ./update.sh - do not update manually!
@@ -42,7 +42,3 @@ cat >sources.nix <<EOF
  fullHash = "sha256:$eaFullHash";
}
EOF

if [ "${COMMIT:-0}" == "1" ]; then
    git commit -m "yuzu-ea: ${oldVersion} -> ${newVersion}" ./sources.nix
fi
+1 −1
Original line number Diff line number Diff line
@@ -4,4 +4,4 @@
nix-update -u yuzuPackages.nx_tzdb "$@"
nix-update -u yuzuPackages.compat-list "$@"
nix-update -u yuzuPackages.mainline "$@"
nix-update -u yuzuPackages.early-access "$@"
nix-update -u yuzuPackages.early-access --override-filename pkgs/applications/emulators/yuzu/early-access/sources.nix "$@"