Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
fix(just): improve JetBrains Toolbox installation (ublue-os#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Sep 3, 2023
1 parent 628fcb7 commit c8e2069
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions usr/share/ublue-os/just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,20 @@ gnome-extensions:
# Install JetBrains Toolbox | https://www.jetbrains.com/toolbox-app/
jetbrains-toolbox:
#!/usr/bin/env bash
BUILD_VERSION="2.0.2.16660"
echo "Installing JetBrains Toolbox"
pushd "$(mktemp -d)"
curl -sSfL -O https://download.jetbrains.com/toolbox/jetbrains-toolbox-$BUILD_VERSION.tar.gz
curl -sSfL https://download.jetbrains.com/toolbox/jetbrains-toolbox-$BUILD_VERSION.tar.gz.sha256 | sha256sum -c
tar zxf jetbrains-toolbox-$BUILD_VERSION.tar.gz
echo "Get latest JetBrains Toolbox version"
# Get the json with latest releases
curl -sSfL -o releases.json "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release"
# Extract information
BUILD_VERSION=$(jq -r '.TBA[0].build' ./releases.json)
DOWNLOAD_LINK=$(jq -r '.TBA[0].downloads.linux.link' ./releases.json)
CHECKSUM_LINK=$(jq -r '.TBA[0].downloads.linux.checksumLink' ./releases.json)
echo "Installing JetBrains Toolbox ${BUILD_VERSION}"
curl -sSfL -O "${DOWNLOAD_LINK}"
curl -sSfL "${CHECKSUM_LINK}" | sha256sum -c
tar zxf jetbrains-toolbox-"${BUILD_VERSION}".tar.gz
echo "Launching JetBrains Toolbox"
./jetbrains-toolbox-$BUILD_VERSION/jetbrains-toolbox
./jetbrains-toolbox-"${BUILD_VERSION}"/jetbrains-toolbox
# Install nix and Devbox
nix-devbox:
Expand Down

0 comments on commit c8e2069

Please sign in to comment.