vintagestory: add update script (#483655)

This commit is contained in:
Michael Daniels 2026-03-07 17:18:47 +00:00 committed by GitHub
commit 57076c02fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -123,6 +123,8 @@ stdenv.mkDerivation (finalAttrs: {
done
'';
passthru.updateScript = ./update.sh;
meta = {
description = "In-development indie sandbox game about innovation and exploration";
homepage = "https://www.vintagestory.at/";

View file

@ -0,0 +1,7 @@
#! /usr/bin/env nix-shell
#! nix-shell -I../../../.. -i bash -p curl jq common-updater-scripts
set -euo pipefail
new_version="$(curl -sL https://mods.vintagestory.at/api/gameversions | jq -r '.gameversions | map(.name | select(contains("-") | not)) | last')"
update-source-version vintagestory "$new_version"