test: test debian packaging

This commit is contained in:
Kevin Yue 2022-05-26 13:16:20 +08:00
parent 65c59e47ec
commit 108b4be3ec

3
debian/rules vendored
View File

@ -11,5 +11,6 @@ export DEBIAN_PACKAGE=1
dh $@ dh $@
override_dh_installsystemd: override_dh_installsystemd:
# Update the the dbus user to logname # Update the the dbus user to logname
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf echo "DPKG_ROOT: ${DPKG_ROOT}"
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" "${DPKG_ROOT}/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf"
dh_installsystemd gpservice.service dh_installsystemd gpservice.service