Created
July 14, 2024 14:24
-
-
Save M0nteCarl0/775b07e755fc6089f1c38636dada54cd to your computer and use it in GitHub Desktop.
debian_package build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define package metadata | |
PACKAGE_NAME="myapp" | |
VERSION="1.0" | |
ARCHITECTURE="amd64" | |
MAINTAINER="Your Name <[email protected]>" | |
DESCRIPTION="Description of your application" | |
# Create package directories | |
mkdir -p myapp/DEBIAN | |
mkdir -p myapp/usr/bin | |
# Generate the control file | |
cat <<EOF > myapp/DEBIAN/control | |
Package: $PACKAGE_NAME | |
Version: $VERSION | |
Architecture: $ARCHITECTURE | |
Maintainer: $MAINTAINER | |
Description: $DESCRIPTION | |
EOF | |
# Copy the Avalonia application binary to the package directory | |
cp path/to/avalonia_binary myapp/usr/bin | |
# Set permissions | |
chmod 755 myapp/usr/bin/avalonia_binary | |
# Build the Debian package | |
dpkg-deb --build myapp | |
echo "Debian package built successfully!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment