summarylogtreecommitdiffstats
path: root/pumble-desktop-bin.install
blob: 359f1085781cc2abcf850e9805c298cbc5ae595c (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
post_install() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	# Link to the binary
	ln -sf '/opt/Pumble/pumble-desktop' '/usr/bin/pumble-desktop'

	# SUID chrome-sandbox for Electron 5+
	chmod 4755 '/opt/Pumble/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() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	# Delete the link to the binary
	rm -f '/usr/bin/pumble-desktop'
	update-desktop-database -q
}