diff options
-rw-r--r-- | Stretchly.install | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Stretchly.install b/Stretchly.install index db16d2db5170..dc840da3d717 100644 --- a/Stretchly.install +++ b/Stretchly.install @@ -1,5 +1,9 @@ post_install() { gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Link to the binary + ln -sf '/opt/Stretchly/stretchly' '/usr/bin/stretchly' + update-desktop-database -q } post_upgrade() { @@ -8,4 +12,8 @@ post_upgrade() { post_remove() { gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Delete the link to the binary + rm -f '/usr/bin/stretchly' + update-desktop-database -q } |