31
build-deb.sh
Archivo ejecutable
31
build-deb.sh
Archivo ejecutable
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Build script for Debai Debian package
|
||||
|
||||
set -e
|
||||
|
||||
echo "Building Debai Debian package..."
|
||||
|
||||
# Check for required tools
|
||||
command -v dpkg-buildpackage >/dev/null 2>&1 || {
|
||||
echo "Error: dpkg-buildpackage not found. Install with:"
|
||||
echo " sudo apt install build-essential debhelper"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Clean previous builds
|
||||
echo "Cleaning previous builds..."
|
||||
rm -rf debian/debai debian/.debhelper debian/tmp
|
||||
rm -f debian/files debian/debai.substvars
|
||||
rm -f ../debai_*.deb ../debai_*.buildinfo ../debai_*.changes
|
||||
|
||||
# Build the package
|
||||
echo "Building package..."
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
echo ""
|
||||
echo "Build complete!"
|
||||
echo "Package: ../debai_1.0.0-1_all.deb"
|
||||
echo ""
|
||||
echo "Install with:"
|
||||
echo " sudo dpkg -i ../debai_1.0.0-1_all.deb"
|
||||
echo " sudo apt-get install -f"
|
||||
Referencia en una nueva incidencia
Block a user