diff options
author | Marcin | 2021-08-14 19:02:39 +0200 |
---|---|---|
committer | Marcin | 2021-08-14 20:31:37 +0200 |
commit | 7956f77740b850f181304dbfababac6d70d58575 (patch) | |
tree | b4853c7604d158b3e1214820b38d16ec6072e8f6 /lycheeslicer.install | |
download | aur-7956f77740b850f181304dbfababac6d70d58575.tar.gz |
first release: 3.3.2
Diffstat (limited to 'lycheeslicer.install')
-rw-r--r-- | lycheeslicer.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lycheeslicer.install b/lycheeslicer.install new file mode 100644 index 000000000000..ebb3904ad693 --- /dev/null +++ b/lycheeslicer.install @@ -0,0 +1,25 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + + # Link to the binary + ln -sf '/opt/LycheeSlicer/lycheeslicer' '/usr/bin/lycheeslicer' + + # SUID chrome-sandbox for Electron 5+ + chmod 4755 '/opt/LycheeSlicer/chrome-sandbox' || true + + update-mime-database /usr/share/mime || true + update-desktop-database /usr/share/applications || true + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + + # Delete the link to the binary + rm -f '/usr/bin/lycheeslicer' + update-desktop-database -q +} |