summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorl422020-07-26 13:49:58 +0500
committerl422020-07-26 13:49:58 +0500
commiteaf9914e363c0c0f2e7a4f7b44ba281d65a7b716 (patch)
tree9253c84776f30eec89ea3e3b616881ab4c994561
parenta38d5ea453c2356ec48eca8f6fe6f899e88c446b (diff)
downloadaur-eaf9914e363c0c0f2e7a4f7b44ba281d65a7b716.tar.gz
Link binary by default
-rw-r--r--Stretchly.install8
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
}