Only extract downloaded current tar archive
The current postinst has the bug that all tar archives store in /opt that begin with ideaIC- are extracted. While this issue will not appear to most users it may still be a problem to aborted installations which are only continued after an update. See also https://gitlab.com/mmk2410/intellij-idea-community/-/issues/5
This commit is contained in:
parent
780f1be650
commit
987662a7c4
2 changed files with 3 additions and 2 deletions
|
@ -5,13 +5,13 @@ set -e
|
||||||
cd /opt/
|
cd /opt/
|
||||||
|
|
||||||
## Extract the package
|
## Extract the package
|
||||||
sudo tar xf /opt/ideaIU-*
|
sudo tar xf /opt/ideaIU-2021.2.2.tar.gz
|
||||||
|
|
||||||
## Rename the directory
|
## Rename the directory
|
||||||
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
||||||
|
|
||||||
## Remove the tar.gz package
|
## Remove the tar.gz package
|
||||||
sudo rm /opt/ideaIU-*
|
sudo rm /opt/ideaIU-2021.2.2.tar.gz
|
||||||
|
|
||||||
## Install the .desktop file, if necessary
|
## Install the .desktop file, if necessary
|
||||||
if [ -x "/usr/bin/desktop-file-install" ]; then
|
if [ -x "/usr/bin/desktop-file-install" ]; then
|
||||||
|
|
|
@ -26,6 +26,7 @@ main() {
|
||||||
"Upstream version $new"
|
"Upstream version $new"
|
||||||
|
|
||||||
sed -i "s/$old/$new/g" ./debian/preinst
|
sed -i "s/$old/$new/g" ./debian/preinst
|
||||||
|
sed -i "s/$old/$new/g" ./debian/postinst
|
||||||
|
|
||||||
debuild -us -uc
|
debuild -us -uc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue