feat: add debian packaging, CI/CD and update script

- Add debian/ packaging for .deb generation
- Add .forgejo/workflows/build.yml for CI/CD (runner label: docker)
- Add scripts/fullupdater and scripts/fullupdater-update
- Remove obsolete install.sh
- Update .gitignore for debian build artifacts
This commit is contained in:
enzo 2026-05-13 00:10:49 +02:00
parent 184b0e6033
commit 57e6b2557b
10 changed files with 281 additions and 30 deletions

30
build_deb.sh Normal file
View file

@ -0,0 +1,30 @@
#!/bin/bash
set -e
# Script de build local du .deb (à lancer manuellement si besoin)
# Usage : bash build_deb.sh
cd "$(dirname "$0")"
# Vérifier les dépendances
if ! command -v dpkg-buildpackage &> /dev/null; then
echo "Installation des dépendances de build..."
apt-get update
apt-get install -y debhelper dh-python python3-all python3-venv devscripts
fi
# Mettre à jour le changelog avec la date actuelle
DATE=$(date -R)
cat > debian/changelog <<EOF
full-updater (1.0.0) unstable; urgency=medium
* Local build
-- Enzo <admin@geronzi.fr> ${DATE}
EOF
# Build
dpkg-buildpackage -us -uc -b -tc
echo "✅ Build terminé. Le .deb est dans ../"
ls -la ../*.deb