Platform updates
The native parts of Minekube, the CLI and the Minekube plugin with its connector, change rarely. Every build of main that passes CI is a GitHub release with a manifest.json that names every file with its SHA-256. Two planned commands install them.
mk update
Section titled “mk update”- It finds the newest release from the redirect of
releases/latest. - It downloads
manifest.jsonandminekube-cli.tgzof that build, checks the SHA-256 against the manifest, and installs the checked file withbun add -g. - In a checkout of the repository it refuses: there, the update is
git pull. - A note about a new version appears at most every 20 hours, can be turned off with an environment variable, and never appears in CI.
/minekube update on a server
Section titled “/minekube update on a server”- In the console or in the game, it downloads the plugin jar of the newest release, checks it against the manifest and puts it in
plugins/update/. Every Bukkit server knows this folder: on the next start it replaces the plugin with it. /restarts the server once the games’ holds are released. A supervisor starts it again: Docker with a restart policy, systemd, Kubernetes orminekube update --restart mk server. Without a supervisor the server stops, and the next start takes the new jar.- There is no reload without a restart. The plugin brings native libraries, and a JVM loads a native library only once per process.
Related
Section titled “Related”- Controlled updates: the holds a restart waits for.
- Open source: where releases come from.
Was this helpful?
Thanks for the feedback.