mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-07 23:04:00 +01:00
vintagestory: add update script (#483655)
This commit is contained in:
commit
57076c02fc
2 changed files with 9 additions and 0 deletions
|
|
@ -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/";
|
||||
|
|
|
|||
7
pkgs/by-name/vi/vintagestory/update.sh
Executable file
7
pkgs/by-name/vi/vintagestory/update.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue