diff options
Diffstat (limited to 'open-numismat-bin.install')
-rw-r--r-- | open-numismat-bin.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/open-numismat-bin.install b/open-numismat-bin.install new file mode 100644 index 000000000000..5b43458178f8 --- /dev/null +++ b/open-numismat-bin.install @@ -0,0 +1,27 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + + if which py3compile >/dev/null 2>&1; then + py3compile -p open-numismat + fi + + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +pre_remove() { + + if which py3clean >/dev/null 2>&1; then + py3clean -p open-numismat + else + echo "Already cleaned" + fi +} + +post_remove() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} |