Add Debian packaging and update Forgejo workflow
Some checks failed
Build deb-bootupd Artifacts / build (push) Failing after 6m14s
Simple Build and Upload / build (push) Failing after 2m0s

- Add complete Debian packaging configuration (debian/ directory)
- Create build-deb.sh script for building packages
- Update Forgejo workflow to build and upload .deb artifacts
- Add comprehensive version naming for both binary and Debian artifacts
- Update .gitignore to exclude build artifacts and packaging files
- Add PACKAGING.md documentation
- Add test-deb.sh for testing package installation
This commit is contained in:
robojerk 2025-08-10 11:30:19 -07:00
parent ff974a9d4a
commit 73b43239e9
19 changed files with 705 additions and 21 deletions

19
debian/postrm vendored Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
set -e
# Post-removal script for deb-bootupd
# This script runs after the package is removed
# Reload systemd to clean up service references
if command -v systemctl >/dev/null 2>&1; then
deb-systemd-invoke daemon-reload >/dev/null 2>&1 || true
fi
# Remove the symlink if it still exists
if [ -L /usr/bin/bootupctl ]; then
rm -f /usr/bin/bootupctl
fi
# Note: We don't remove /boot/bootupd-state.json as it contains
# important bootloader state that should persist across package removals
# Users can manually remove it if they want to reset everything