diff options
Diffstat (limited to 'ninjacoin-wallet-bin.install')
-rw-r--r-- | ninjacoin-wallet-bin.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ninjacoin-wallet-bin.install b/ninjacoin-wallet-bin.install new file mode 100644 index 000000000000..c00a3fce0962 --- /dev/null +++ b/ninjacoin-wallet-bin.install @@ -0,0 +1,22 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Link to the binary + ln -sf '/opt/Ninjacoin Wallet/ninjacoin-wallet' '/usr/bin/ninjacoin-wallet' + + update-mime-database /usr/share/mime || true + update-desktop-database /usr/share/applications || true + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Delete the link to the binary + rm -f '/usr/bin/ninjacoin-wallet' + update-desktop-database -q +} |