summarylogtreecommitdiffstats
path: root/hexcore-link.install
blob: 716e87beed13d14f8b924521d3d93c67ccdb7350 (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
post_install() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	# Link to the binary
	ln -sf '/opt/hexcore-link/hexcore-link' '/usr/bin/hexcore-link'
	update-desktop-database -q

	chmod +x /opt/hexcore-link/linux-after-install.sh
	/opt/hexcore-link/linux-after-install.sh
}

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/obinskit'
	update-desktop-database -q

	# Delete udev rule and reload
	rm -f '/etc/udev/rules.d/obinskit-kdb.rules'
	udevadm control --reload-rule
}