Unverified Commit 84a45f5b authored by Marcin Serwin's avatar Marcin Serwin
Browse files

pcsx2: switch updater to stable versions



Signed-off-by: default avatarMarcin Serwin <marcin@serwin.dev>
parent ce72a12f
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nix-update common-updater-scripts coreutils
#!nix-shell -i bash -p bash nix-update common-updater-scripts coreutils jq

set -ex

latestRev=`git ls-remote -b https://github.com/PCSX2/pcsx2_patches main | cut -f1`
latestPatchesRev=`git ls-remote -b https://github.com/PCSX2/pcsx2_patches main | cut -f1`

update-source-version pcsx2 \
  --ignore-same-version \
  --rev=$latestRev \
  --rev=$latestPatchesRev \
  --source-key=pcsx2_patches
nix-update --version=unstable pcsx2

latestVersion="`curl "https://api.github.com/repos/PCSX2/pcsx2/releases/latest" \
  | jq -r ".tag_name[1:]"`"

nix-update pcsx2 --version=$latestVersion