summarylogtreecommitdiffstats
path: root/whatsapp-nativefier-nomaximize-hook.install
blob: 375c890b09f65c6c5bc286eb84d161c9114fde4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
	echo "Disabling minimize on close in the current whatsapp-nativefier install"
	patch --forward --strip=1 --directory=/opt/whatsapp-nativefier/resources/app/lib --input=/usr/share/libalpm/scripts/whatsapp-nativefier-nomaximize.patch
	if [ $? -gt 0 ] 
	then
		rm -f /opt/whatsapp-nativefier/resources/app/lib/main.js.rej
	fi
}



pre_remove() {
	echo "Enabling minimize on close in the current whatsapp-nativefier install"
	patch --reverse --strip=1 --directory=/opt/whatsapp-nativefier/resources/app/lib --input=/usr/share/libalpm/scripts/whatsapp-nativefier-nomaximize.patch
	if [ $? -gt 0 ] 
	then
		rm -f /opt/whatsapp-nativefier/resources/app/lib/main.js.rej
	fi
}