Add full Oculog codebase
This commit is contained in:
35
clients/ubuntu/build-deb.sh
Executable file
35
clients/ubuntu/build-deb.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Colors
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo -e "${GREEN}Building Oculog Client Debian Package${NC}"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
# Check if dpkg-buildpackage is available
|
||||
if ! command -v dpkg-buildpackage &> /dev/null; then
|
||||
echo -e "${YELLOW}dpkg-buildpackage not found. Installing build dependencies...${NC}"
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y devscripts build-essential debhelper
|
||||
fi
|
||||
|
||||
# Clean previous builds
|
||||
echo "Cleaning previous builds..."
|
||||
rm -rf debian/oculog-client
|
||||
rm -f ../oculog-client_*.deb
|
||||
rm -f ../oculog-client_*.changes
|
||||
rm -f ../oculog-client_*.buildinfo
|
||||
|
||||
# Build the package
|
||||
echo "Building package..."
|
||||
dpkg-buildpackage -b -us -uc
|
||||
|
||||
echo ""
|
||||
echo -e "${GREEN}Package built successfully!${NC}"
|
||||
echo "Package location: ../oculog-client_*.deb"
|
||||
|
||||
Reference in New Issue
Block a user