Skip to content

Commit

Permalink
Merge pull request #53 from renxida/patch-1
Browse files Browse the repository at this point in the history
ZSDK version bump & fix problem with attempting to download gz when release is xz
  • Loading branch information
urob authored Jul 26, 2024
2 parents 0377985 + a78aa59 commit 22acd60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/zmk_local_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ sudo apt-get install --yes --no-install-recommends git cmake ninja-build gperf \
# Find latest release version
# ZSDK_URL="https://github.com/zephyrproject-rtos/sdk-ng/releases/latest"
# ZSDK_VERSION="$(curl -fsSLI -o /dev/null -w %{url_effective} ${ZSDK_URL} | sed 's/^.*v//')"
ZSDK_VERSION="0.15.2"
ZSDK_VERSION="0.16.3"

# Download and verify latest Zephyr SDK bundle
cd ~/.local
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz
wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/sha256.sum | shasum --check --ignore-missing
## TODO: abort if exit code is error

# Extract the Zephyr SDK bundle archive
tar xvf zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
rm zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
tar xvf zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz
rm zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz

# Run the Zephyr SDK bundle setup script
cd zephyr-sdk-${ZSDK_VERSION}
Expand Down

0 comments on commit 22acd60

Please sign in to comment.