Skip to content

Commit

Permalink
install intellij ujust
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrutsaert committed Sep 21, 2024
1 parent 89301eb commit 8cdc6e1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
30 changes: 29 additions & 1 deletion files/justfiles/myjust.just
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ enable-rootless-docker-for-user:

add-user-to-groups:
sudo usermod -a -G libvirt $(whoami)
sudo usermod -a -G docker $(whoami)
sudo usermod -a -G docker $(whoami)

install-intellij:
#!/usr/bin/bash
echo "Get and install latest JetBrains Intellij Ultimate version"
mkdir -p /tmp/idea && cd /tmp/idea
curl -sSfL -o releases.json "https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release"
BUILD_VERSION=$(jq -r '.IIU[0].build' ./releases.json)
DOWNLOAD_LINK=$(jq -r '.IIU[0].downloads.linux.link' ./releases.json)
CHECKSUM_LINK=$(jq -r '.IIU[0].downloads.linux.checksumLink' ./releases.json)
echo "Installing Intellij ${BUILD_VERSION}"
curl -sSfL -O "${DOWNLOAD_LINK}"
curl -sSfL "${CHECKSUM_LINK}" | sha256sum -c
mkdir -p $HOME/applications
tar -xzf ideaIU-*.tar.gz -C $HOME/applications
mkdir -p $HOME/.local/share/applications
cat << EOF > $HOME/.local/share/applications/jetbrains-idea.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate Edition
Icon=$HOME/applications/idea-IU-${BUILD_VERSION}/bin/idea.svg
Exec="$HOME/applications/idea-IU-${BUILD_VERSION}/bin/idea" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea
StartupNotify=true
EOF
1 change: 0 additions & 1 deletion recipes/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ modules:
- powertop
- btop
- bpftop
- foot
remove:
- firefox
- firefox-langpacks

0 comments on commit 8cdc6e1

Please sign in to comment.