diff --git a/intellij-idea-community_2021.2.2/debian/postinst b/intellij-idea-community_2021.2.2/debian/postinst index b16c1fe..f409fab 100644 --- a/intellij-idea-community_2021.2.2/debian/postinst +++ b/intellij-idea-community_2021.2.2/debian/postinst @@ -5,13 +5,13 @@ set -e cd /opt/ ## Extract the package -sudo tar xf /opt/ideaIC-* +sudo tar xf /opt/ideaIC-2021.2.2.tar.gz ## Rename the directory sudo mv /opt/idea-IC-* /opt/intellij-idea-community ## Remove the tar.gz package -sudo rm /opt/ideaIC-* +sudo rm /opt/ideaIC-2021.2.2.tar.gz ## Install the .desktop file, if necessary if [ -x "/usr/bin/desktop-file-install" ]; then diff --git a/update-new-version.sh b/update-new-version.sh index 4c635b8..bf3c295 100755 --- a/update-new-version.sh +++ b/update-new-version.sh @@ -26,6 +26,7 @@ main() { "Upstream version $new" sed -i "s/$old/$new/g" ./debian/preinst + sed -i "s/$old/$new/g" ./debian/postinst debuild -us -uc