Skip to content

Commit

Permalink
Github action to create a debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
arminha committed Feb 28, 2024
1 parent 1fa6ea6 commit 0d43c97
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/debian-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:

name: create-debian-package

jobs:
create-debian-package:
runs-on: ubuntu-latest
container: rust:1.76.0-bookworm
steps:
- name: Install required packages
run: apt-get update && apt-get install -y build-essential devscripts bash-completion pkg-config rsync libssl-dev

- name: Checkout sources
uses: actions/checkout@v3

- name: Build package
run: ./build_deb.sh
4 changes: 3 additions & 1 deletion build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ SCRIPT_DIR=$(dirname $0)
rm -rf build
mkdir build

rsync -av --exclude-from=$SCRIPT_DIR/.gitignore --exclude=.git $SCRIPT_DIR/ build/covet
rsync -av --exclude-from=$SCRIPT_DIR/.gitignore \
--exclude=.git --exclude=build --exclude=apt --exclude=cargo \
$SCRIPT_DIR/ build/covet

pushd build
pushd covet
Expand Down
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Source: covet
Section: misc
Priority: optional
Maintainer: Armin Häberling <[email protected]>
Build-Depends: debhelper (>= 9), pkg-config, libssl-dev
Build-Depends: debhelper-compat (= 13), bash-completion, pkg-config, libssl-dev
Standards-Version: 3.9.5
Homepage: https://github.com/arminha/covet

Package: covet
Architecture: any
Depends: adduser, lsb-base, ${shlibs:Depends}, ${misc:Depends}
Depends: adduser, sysvinit-utils (>= 3), daemon, ${shlibs:Depends}, ${misc:Depends}
Description: Tools for operating HP scanners in a network
Features
* Supports HP Envy scanners
Expand Down

0 comments on commit 0d43c97

Please sign in to comment.