about summary refs log tree commit diff
path: root/pkgs/games/minecraft/update.sh
blob: 485fb5a560f6803d28886aa1a9afcce6e8aa985b (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts

set -eu -o pipefail

version=$(curl -s 'https://launchermeta.mojang.com/v1/products/launcher/6f083b80d5e6fabbc4236f81d0d8f8a350c665a9/linux.json' | jq -r '."launcher-core"[0].version.name')
update-source-version minecraft "${version}"