Add script for installing jetbrains

This commit is contained in:
Manuel Thalmann 2022-11-21 10:27:39 +01:00
parent e54e3e5f4a
commit 86968232a4
2 changed files with 28 additions and 0 deletions

View file

@ -55,6 +55,9 @@ flatpak install -y flathub com.mattjakeman.ExtensionManager
flatpak install -y flathub com.github.wwmm.easyeffects
flatpak install -y flathub ch.threema.threema-web-desktop
# Install JetBrains Stuff
source "$softwareRoot/jetbrains-toolbox.sh"
# Install equalizer
source "$popOSRoot/equalizer/install.sh"

View file

@ -0,0 +1,25 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE"
else
workingDirectory=$(pwd)
contextRoot=$(mktemp -d)
cd $contextRoot
curl -fsSL https://raw.githubusercontent.com/nagygergo/jetbrains-toolbox-install/1.1/jetbrains-toolbox.sh \
| bash
cd $workingDirectory
rm -rf $contextRoot
{
echo "[Desktop Entry]"
echo "Encoding=UTF-8"
echo "Type=Application"
echo "Terminal=false"
echo "Exec=/opt/jetbrains-toolbox/jetbrains-toolbox"
echo "Name=JetBrains Toolbox"
} > /usr/share/applications/jetbrains-toolbox.desktop
fi