diff options
author | Alex Henrie | 2019-10-17 21:19:22 -0600 |
---|---|---|
committer | Alex Henrie | 2019-10-17 21:19:22 -0600 |
commit | 0042ddd8dfe4e81cc952b4aaf604d5440171f7d6 (patch) | |
tree | e99b0c6b5d2e779f84f24c3af7c2fe5a5511a8fd /ipfs-desktop.install | |
parent | 26bc537daa0ab01e65a5df5dcd3eb2e9cb6675df (diff) | |
download | aur-0042ddd8dfe4e81cc952b4aaf604d5440171f7d6.tar.gz |
Use electron-builder's pacman packaging feature
IPFS Desktop has to be built with electron-builder for its "Launch on
startup" feature to work.
Diffstat (limited to 'ipfs-desktop.install')
-rw-r--r-- | ipfs-desktop.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ipfs-desktop.install b/ipfs-desktop.install new file mode 100644 index 000000000000..5e156eb24eac --- /dev/null +++ b/ipfs-desktop.install @@ -0,0 +1,18 @@ +post_install() { + : +#!/bin/bash + +# Link to the binary +ln -sf '/opt/IPFS Desktop/ipfs-desktop' '/usr/bin/ipfs-desktop' + +update-mime-database /usr/share/mime || true +update-desktop-database /usr/share/applications || true +} +post_remove() { + : +#!/bin/bash + +# Delete the link to the binary +rm -f '/usr/bin/ipfs-desktop' + +} |