Merge pull request #329752 from pbsds/fix-pcsx2-bin-1721863218

pcsx2-bin: simplify updateScript
This commit is contained in:
Artturin 2024-07-25 04:46:20 +03:00 committed by GitHub
commit eec89be0fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 9 deletions

View File

@ -3,6 +3,7 @@
stdenvNoCC,
fetchurl,
makeWrapper,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@ -30,7 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
'';
passthru = {
updateScript = ./update.sh;
updateScript = nix-update-script { };
};
meta = {

View File

@ -1,8 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq gnused common-updater-scripts
set -eou pipefail
LATEST_VERSION="$(curl --silent --fail ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "https://api.github.com/repos/PCSX2/pcsx2/releases" | jq '.[0].tag_name' --raw-output | sed 's/^v//')"
update-source-version pcsx2-bin "$LATEST_VERSION"