summarylogtreecommitdiffstats
path: root/teleguard-desktop.install
blob: e8a3bb97e3c5508cf3f41d03b3308fc5bbe8709b (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
post_install() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
	ln -s /usr/share/teleguard_desktop/teleguard_desktop /usr/bin/teleguard_desktop
	chmod +x /usr/bin/teleguard_desktop
	sudo echo "/usr/share/teleguard_desktop/lib" >> ./teleguard-libwebrtc.conf
	sudo cp ./teleguard-libwebrtc.conf /etc/ld.so.conf.d/
	sudo rm ./teleguard-libwebrtc.conf
	sudo cp '/lib/libmpv.so' '/lib/libmpv.so.1'
	sudo cp '/lib/libplacebo.so' '/lib/libplacebo.so.229'
	sudo ldconfig
	echo "TeleGuard has arrived"
	update-desktop-database -q
}

post_upgrade() {
	post_install
}

post_remove() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
	rm /usr/bin/teleguard_desktop
	echo "TeleGuard hopes to see you again"
	update-desktop-database -q
}