blob: 2f6e8b20189a837a6ae77ca557190ac2a821b038 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
post_install() {
:
#!/bin/bash
# Link to the binary
ln -sf '/opt/ElectronMail/electron-mail' '/usr/local/bin/electron-mail'
# Fix chrome-sandbox permissions
chown root:root /opt/ElectronMail/chrome-sandbox
chmod 4755 /opt/ElectronMail/chrome-sandbox
update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
}
post_upgrade() {
:
#!/bin/bash
# Fix chrome-sandbox permissions
chown root:root /opt/ElectronMail/chrome-sandbox
chmod 4755 /opt/ElectronMail/chrome-sandbox
}
post_remove() {
:
#!/bin/bash
# Delete the link to the binary
rm -f '/usr/local/bin/electron-mail'
}
|