This commit is contained in:
parent
447e1c29ab
commit
298a3cdc12
2 changed files with 42 additions and 0 deletions
32
.forgejo/workflows/package.yml
Normal file
32
.forgejo/workflows/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build_debian:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
- name: Prepare package
|
||||||
|
run: |
|
||||||
|
mkdir -p \
|
||||||
|
package/debian/honeywell-config/usr/bin \
|
||||||
|
package/debian/honeywell-config/usr/lib/udev/rules.d/
|
||||||
|
sed -re "s/__VERSION__/0.$(git rev-list --count ${GITHUB_REF_NAME})-1/g" -i package/debian/barcode-utils/DEBIAN/control
|
||||||
|
apt install libusb-dev
|
||||||
|
make
|
||||||
|
strip honeywell-config
|
||||||
|
cp honeywell-config package/debian/honeywell-config/usr/bin
|
||||||
|
cp 99-honeywell.rules package/debian/honeywell-config/usr/lib/udev/rules.d/
|
||||||
|
find package/debian/honeywell-config -exec touch -m -d "$(git log -1 --format="%aI")" {} \;
|
||||||
|
cd package/debian/
|
||||||
|
dpkg-deb --build honeywell-config .
|
||||||
|
|
||||||
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.API_USERNAME }}
|
||||||
|
password: ${{ secrets.API_PASSWORD }}
|
||||||
|
deb: "package/debian/*.deb"
|
10
package/debian/barcode-utils/DEBIAN/control
Normal file
10
package/debian/barcode-utils/DEBIAN/control
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Package: barcode-utils
|
||||||
|
Version: __VERSION__
|
||||||
|
Maintainer: s3lph <s3lph@kabelsalat.ch>
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Depends: python3 (>= 3.6), python3-hid
|
||||||
|
Description: Miscellaneous utils for dealing with barcodes.
|
||||||
|
Miscellaneous utils for dealing with barcodes.
|
||||||
|
|
Loading…
Reference in a new issue