diff options
author | Timo Wilken | 2024-07-26 20:03:45 +0200 |
---|---|---|
committer | Timo Wilken | 2024-07-26 20:03:45 +0200 |
commit | a60de647f110c7879d5382f7881e2e5f8ea90be0 (patch) | |
tree | 676fd8ce3733e2ab98867b669140a2b8ec7fe5dd /tw/packages/games.scm | |
parent | 1f1133192ee163a615f62d497b8d862b37aa1cb7 (diff) |
Document command to get latest Minecraft server .jar
Diffstat (limited to 'tw/packages/games.scm')
-rw-r--r-- | tw/packages/games.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tw/packages/games.scm b/tw/packages/games.scm index ad6f28b5..9f9b8baf 100644 --- a/tw/packages/games.scm +++ b/tw/packages/games.scm @@ -613,6 +613,9 @@ on an ever-expanding railway extravaganza.") ;; https://piston-meta.mojang.com/mc/game/version_manifest.json ;; ...which links to: ;; https://piston-meta.mojang.com/v1/packages/111890b5a8c2fee9b77036f9f377b33df42c718a/1.20.6.json +;; +;; To get the latest version's server .jar URL and sha1 hash: +;; curl -fSsL "$(curl -fSsL 'https://piston-meta.mojang.com/mc/game/version_manifest.json' | jq -r '.latest.release as $latest | .versions[] | select(.id == $latest and .type == "release") | .url')" | jq -r '.downloads.server | [.url, .sha1] | .[]' (define-public minecraft-server (package |