2015-12-08 11:55:30 +01:00
|
|
|
#!/bin/bash
|
2017-02-02 13:58:56 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2015-12-08 11:55:30 +01:00
|
|
|
cd /opt/
|
|
|
|
|
|
|
|
## Extract the package
|
2024-03-13 15:02:18 +01:00
|
|
|
tar xf /opt/ideaIC-2023.3.5.tar.gz
|
2015-12-08 11:55:30 +01:00
|
|
|
|
|
|
|
## Rename the directory
|
2021-10-01 20:00:01 +02:00
|
|
|
mv /opt/idea-IC-* /opt/intellij-idea-community
|
2015-12-08 11:55:30 +01:00
|
|
|
|
|
|
|
## Remove the tar.gz package
|
2024-03-13 15:02:18 +01:00
|
|
|
rm /opt/ideaIC-2023.3.5.tar.gz
|
2015-12-08 11:55:30 +01:00
|
|
|
|
2017-01-02 19:10:17 +01:00
|
|
|
## Install the .desktop file, if necessary
|
|
|
|
if [ -x "/usr/bin/desktop-file-install" ]; then
|
2021-10-01 20:00:01 +02:00
|
|
|
desktop-file-install /usr/share/applications/intellij-idea-community.desktop
|
2017-01-02 19:10:17 +01:00
|
|
|
fi
|
2017-02-02 13:58:56 +01:00
|
|
|
|
|
|
|
##DEBHELPER##
|