Build Debian packages with CI

This commit is contained in:
Chris M 2020-12-01 01:33:20 +00:00 committed by Adam Honse
parent 43fccf259f
commit 6ec7901038
6 changed files with 82 additions and 8 deletions

3
debian/control vendored
View file

@ -16,10 +16,11 @@ Homepage: https://gitlab.com/CalcProgrammer1/OpenRGB
Package: openrgb
Architecture: any
Depends:
udev,
${shlibs:Depends},
${misc:Depends},
Recommends:
openrgb-udev,
openrazer-driver-dkms,
openrgb-dkms-drivers,
Description: Open source RGB lighting control
OpenRGB controls RGB lighting

4
debian/files vendored
View file

@ -1 +1,3 @@
openrgb_0.41.1_source.buildinfo misc optional
openrgb-dbgsym_0.41.1_amd64.ddeb debug optional automatic=yes
openrgb_0.41.1_amd64.buildinfo misc optional
openrgb_0.41.1_amd64.deb misc optional

View file

@ -1,3 +1,4 @@
/usr/bin/
/usr/share/applications/
/usr/share/pixmaps
/lib/udev/rules.d/

17
debian/openrgb.postinst vendored Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# -e is not set should this step fail for whatever reason the installation is still valid
set -u -o pipefail
# Reload rules
if [ -f /bin/udevadm ]; then
udevadm control --reload-rules && udevadm trigger;
else
echo
echo "\/-------------------------------------------------------\\"
echo "\| Critical: This system does not have udev installed. \|"
echo "\| \|"
echo "\| Please install udev with: sudo apt -y install udev \|"
echo "\\-------------------------------------------------------\/"
echo
fi