feat: add deb build (#1422)

This commit is contained in:
NLsdt
2025-10-02 18:39:42 +08:00
committed by GitHub
parent 5d5adbc73f
commit 750e67d835
6 changed files with 134 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
ln -sf /opt/PiliPlus/piliplus /usr/bin/piliplus
chmod +x /usr/bin/piliplus
if [ $1 == "config" ] && [ -x /usr/binupdate-mime-database ]; then
echo "updating mime database..."
update-mime-database /usr/share/mime || true
fi
if [ $1 == "config" ] && [ -x /usr/bin/gtk-update-icon-cache ]; then
echo "updating icon cache..."
gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor || true
fi
if [ $1 == "config" ] && [ -x /usr/bin/update-desktop-database ]; then
echo "updating desktop database..."
update-desktop-database -q /usr/share/applications || true
fi
exit 0