zephyr-nix/update-sdk

7 lines
263 B
Plaintext
Raw Normal View History

2024-02-06 02:52:10 +00:00
#!/usr/bin/env bash
set -euo pipefail
version=$1
curl -L "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v$version/sha256.sum" | jq -R -n "[ inputs | split(\" \") | {(.[2]): .[0]} ] | add | { \"files\": ., \"version\": \"$version\"}" > sdk.json