2019-03-12 17:19:10 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -p httpie
|
|
|
|
#!nix-shell -p jq
|
|
|
|
#!nix-shell -i bash
|
|
|
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
get_download_info() {
|
|
|
|
http --body \
|
|
|
|
https://update.equinox.io/check \
|
|
|
|
'Accept:application/json; q=1; version=1; charset=utf-8' \
|
|
|
|
'Content-Type:application/json; charset=utf-8' \
|
2022-04-13 15:14:53 +00:00
|
|
|
app_id=app_c3U4eZcDbjV \
|
2019-03-12 17:19:10 +00:00
|
|
|
channel=stable \
|
|
|
|
os=$1 \
|
|
|
|
goarm= \
|
2019-03-19 19:05:51 +00:00
|
|
|
arch=$2 \
|
|
|
|
| jq --arg sys "$1-$2" '{
|
|
|
|
sys: $sys,
|
|
|
|
url: .download_url,
|
|
|
|
sha256: .checksum,
|
|
|
|
version: .release.version
|
|
|
|
}'
|
2019-03-12 17:19:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
(
|
|
|
|
get_download_info linux 386
|
|
|
|
get_download_info linux amd64
|
|
|
|
get_download_info linux arm
|
|
|
|
get_download_info linux arm64
|
|
|
|
get_download_info darwin amd64
|
2021-06-07 00:40:07 +00:00
|
|
|
get_download_info darwin arm64
|
2019-03-19 19:05:51 +00:00
|
|
|
) | jq --slurp 'map ({ (.sys): . }) | add' \
|
2022-04-13 15:14:53 +00:00
|
|
|
> pkgs/tools/networking/ngrok/versions.json
|