Commit graph

23 commits

Author SHA1 Message Date
Michiel Borkent
efb947ec03 Fix #1567: always use static binary on linux aarch64 2023-05-29 11:13:17 +02:00
Michiel Borkent
d721b925f4 Support --dev-build flag 2022-12-09 19:12:16 +01:00
Michiel Borkent
683752c602 Always install static binary on linux amd64 2022-12-09 12:51:33 +01:00
polemius
16ea1e8f95
Fix small typo (#1404) 2022-10-21 10:43:46 +02:00
Michiel Borkent
ed0875b52b install script [skip ci] 2022-06-07 23:12:33 +02:00
Michiel Borkent
ec7a6785d9 ignore SNAPSHOT when comparing number 2021-12-26 23:35:24 +01:00
Michiel Borkent
8c770b41ac oops 2021-12-26 23:24:48 +01:00
Thiago Kenji Okada
4ed7cd5aea
Check shasum/sha256sum in PATH on install script (#1108)
* Check shasum/sha256sum in PATH on install script

* Fix typo in .github/pull_request_template.md
2021-12-16 15:26:33 +01:00
Grazfather
340b18dcf6
Force decimal version numbers in install script (#1088)
Co-authored-by: Alex Chen <Cnly@users.noreply.github.com>
2021-12-04 15:54:41 +01:00
Thiago Kenji Okada
0a3149ae8a
Do not exit when --static is called on non-Linux [skip ci] (#871)
While creating [this gist](https://gist.github.com/thiagokokada/115b2588ff65a48d54b8832488801c92)
I realized that exiting if the --static flag is passed on non-Linux systems
just make more difficult to handle those cases.

Instead, let's just print a message informing the user of their mistake,
and keep running the script with the correct filename.
2021-05-28 23:43:31 +02:00
Thiago Kenji Okada
e955926ee9
Improvements to install script [skip ci] (#870)
- Use `mktemp -d` to generate a temporary directory, only if user
  doesn't use `--download-dir`
- Clean-up the temporary directory using `trap`. Remove
  other `rm` calls from code since they're not necessary
  anymore
- Run download in a subshell, so after finishing it the
  script is still on the directory where the user ran
  the script. Fix `./install --dir .` usage
- Fix backup of old Babashka install
2021-05-28 17:07:52 +02:00
Michiel Borkent
1c1d4b531f Install script: default download dir to TMPDIR [skip ci] 2021-05-28 13:33:11 +02:00
Michiel Borkent
48a9ec6c0d Install script [skip ci] 2021-05-27 17:35:55 +02:00
Thiago Kenji Okada
20cc3b4cdd
Use shasum instead of sha256sum [skip ci] (#861)
sha256sum is not available in macOS by default.

See: https://github.com/ESGF/esg-search/issues/84#issuecomment-213694850

However, shasum seems to be avaialble, so use that instead.
2021-05-21 16:52:38 +02:00
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