Add post install debian

This commit is contained in:
Ximi1970
2020-04-14 23:10:36 +02:00
parent ed69419c8d
commit 7671d61c02
2 changed files with 15 additions and 1 deletions

15
dist/deb/debian.postinst vendored Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# Source debconf library.
. /usr/share/debconf/confmodule
# Fetching configuration from debconf
#db_get packagename/question1
#ANSWER1=$RET
DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //")
if { "$DEB_VENDOR" == "Debian" ] ; then
gnome-shell-extension-tool -e ubuntu-appindicator@ubuntu.com
touch /maxime-was-here
fi

View File

@@ -72,7 +72,6 @@ ifeq (Debian,$(DEB_VENDOR))
mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions
cd /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions ;\
ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi
gnome-shell-extension-tool -e ubuntu-appindicator@ubuntu.com
else
mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions
cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi