2017-02-10 17:14:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd /opt/
|
|
|
|
|
|
|
|
## Extract the package
|
2024-02-14 15:02:23 +01:00
|
|
|
tar xf /opt/ideaIU-2023.3.4.tar.gz
|
2017-02-10 17:14:33 +01:00
|
|
|
|
|
|
|
## Rename the directory
|
2021-10-01 20:05:49 +02:00
|
|
|
mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
2017-02-10 17:14:33 +01:00
|
|
|
|
|
|
|
## Remove the tar.gz package
|
2024-02-14 15:02:23 +01:00
|
|
|
rm /opt/ideaIU-2023.3.4.tar.gz
|
2017-02-10 17:14:33 +01:00
|
|
|
|
|
|
|
## Install the .desktop file, if necessary
|
|
|
|
if [ -x "/usr/bin/desktop-file-install" ]; then
|
2021-10-01 20:05:49 +02:00
|
|
|
desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
|
2017-02-10 17:14:33 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
##DEBHELPER##
|