intellij-idea-ultimate/intellij-idea-ultimate_2024.3/debian/postinst

21 lines
408 B
Bash

#!/bin/bash
set -e
cd /opt/
## Extract the package
tar xf /opt/ideaIU-2024.3.tar.gz
## Rename the directory
mv /opt/idea-IU-* /opt/intellij-idea-ultimate
## Remove the tar.gz package
rm /opt/ideaIU-2024.3.tar.gz
## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then
desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
fi
##DEBHELPER##