Commit graph

9 commits

Author SHA1 Message Date
Thiago Kenji Okada
c39d4bc320
Improve install script (#842)
* Add checksum to install script

This will allow someone to check if Babashka is correctly downloaded,
e.g.:

```
$ ./install --dir /tmp --checksum 3cb19f158b9f1655e0165b6c4067d35faaa05882bbdb230616c91085b02b5bf4
Downloading https://github.com/babashka/babashka/releases/download/v0.4.1/babashka-0.4.1-linux-amd64.tar.gz to /tmp
Failed checksum on babashka-0.4.1-linux-amd64.tar.gz
Got: 3cb19f158b9f1655e0165b6c4067d35faaa05882bbdb230616c91085b02b5bf3
Expected: 3cb19f158b9f1655e0165b6c4067d35faaa05882bbdb230616c91085b02b5bf4
```

There is no check by default. This makes this change backwards
compatible (e.g.: if the machine doesn't have sha256sum, this change
will not break installation).

* Add --static to install script

This will allow installation of static instead of dynamically binaries
on Linux.

* Add checksum to print_help

* Add check that --checksum and --options should be provided together
2021-05-14 21:05:38 +02:00
Grazfather
716d5ff94c
install: Use $download_url (#759)
We were only using this var in the echo, but it always said .zip, even
if we were using .tar.gz
2021-03-20 16:24:56 +01:00
Michiel Borkent
fbcfb9a118 Prepare install script [skip ci] 2021-03-15 21:46:03 +01:00
Grazfather
38d18acd4d
Update install to support future tar.gz releases (#752)
* Update install to support future tar.gz releases

* CI: Release as .tar.gz instead of .zip
2021-03-12 10:16:39 +01:00
Michiel Borkent
e309b49e1b Rename 2021-01-01 11:26:31 +01:00
Michiel Borkent
19c497d6b8 Install script minor [skip ci] 2020-12-23 19:55:40 +01:00
Michiel Borkent
85fde995f0 [#688] Add --download-dir to bb install script [skip ci] 2020-12-23 19:30:36 +01:00
Pradeep Bishnoi
d490536c3e
Adding custom version support in command line args (#598) 2020-09-25 18:37:38 +02:00
Michiel Borkent
8571daf11d add installer script 2019-08-11 09:22:57 +02:00