diff --git a/README.md b/README.md index e278009a..80d94568 100644 --- a/README.md +++ b/README.md @@ -200,16 +200,34 @@ $ ./install --dir . To install a specific version, the script also supports `--version`: ``` shell -$ ./install --dir . --version 0.2.5 +$ ./install --dir . --version 0.4.1 ``` To force the download of the zip archive to a different directory than `/tmp` use the `--download-dir` argument: ``` shell -$ ./install --dir . --version 0.2.5 --download-dir . +$ ./install --dir . --version 0.4.1 --download-dir . ``` +On Linux, if you want to install the static binary version: + +``` shell +$ ./install --dir . --version 0.4.1 --download-dir . --static +``` + +In case you want to check the download, you can use the `--checksum` option. +This maybe useful for unattended installations: + +``` shell +$ sha256sum babashka-0.4.1-linux-amd64-static.tar.gz +ab70fb39fdbb5206c0a2faab178ffb54dd9597991a4bc13c65df2564e8f174f6 babashka-0.4.1-linux-amd64-static.tar.g +$ ./install --dir /tmp --checksum ab70fb39fdbb5206c0a2faab178ffb54dd9597991a4bc13c65df2564e8f174f6 --static --version 0.4.1 +``` + +Note that the `--checksum` option only works when `--version` option is also +provided. This is to avoid breakage when a new version of Babashka is released. + ### Github releases You may also download a binary from