summarylogtreecommitdiffstats
path: root/signal-desktop-beta-bin.install
blob: a892e079be52187fefc16cca4d3853afaad2c48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	# Link to the binary
	ln -sf '/opt/Signal Beta/signal-desktop-beta' '/usr/bin/signal-desktop-beta'
	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/signal-desktop-beta'
	update-desktop-database -q
}