Move files back to config

This commit is contained in:
Gerald Pinder
2024-05-29 18:09:24 -04:00
parent 8ec9ac25d9
commit 27d6063c38
28 changed files with 0 additions and 0 deletions

View File

@@ -1,30 +0,0 @@
#!/usr/bin/env bash
set -eou pipefail
# Version number
VERSION="2023.1.2"
# Download https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
curl -L -o /tmp/ideaIC-${VERSION}.tar.gz https://download.jetbrains.com/idea/ideaIC-${VERSION}.tar.gz
# Extract to /usr/opt
mkdir -p /usr/opt
tar -xzf /tmp/ideaIC-${VERSION}.tar.gz -C /usr/opt
# Find the full path to the IntelliJ directory
IDEA_PATH=$(ls -d /usr/opt/idea-IC-*)
# Create .desktop file
cat > /tmp/intellij.desktop <<EOL
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Icon=$IDEA_PATH/bin/idea.png
Exec="$IDEA_PATH/bin/idea.sh" %f
Terminal=false
Categories=Development;IDE;
EOL
# Make the application available to all users
sudo mv /tmp/intellij.desktop /usr/share/applications/