From ddc23e35cafd2ebfcfff6685ceb5b9be74752816 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 20 Mar 2024 00:43:11 -0700 Subject: [PATCH] drone: add .deb generation support --- .drone.yml | 13 +++++++++++++ linux/deb/control | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 linux/deb/control diff --git a/.drone.yml b/.drone.yml index 0929c124..cf7838b3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,11 +55,24 @@ steps: - flutter build linux --dart-define BUILD_VER=`cat VERSION` --dart-define BUILD_DATE=`cat COMMIT_DATE` - linux/package-release.sh - mkdir -p deploy/cwtch + - mkdir -p deploy/deb/cwtch/usr + - mkdir -p deploy/deb/cwtch/DEBIAN + - export VERSION=`cat VERSION | tr -d 'v'` + - sed "s|VERSION|$VERSION|g" linux/deb/control > deploy/deb/cwtch/DEBIAN/control - cp -r build/linux/x64/release/bundle/* deploy/cwtch - cd deploy + - cd cwtch + - INSTALL_PREFIX=./../deb/cwtch/usr DESKTOP_PREFIX=/usr/ ./install.sh + - cd .. # Tar archives need a few tricks to make this deterministic, see https://reproducible-builds.org/docs/archives/ - tar --sort=name --mtime=`cat COMMIT_DATE` --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime -czf cwtch-`cat ../VERSION`.tar.gz cwtch - rm -r cwtch + - cd deb + - dpkg-deb --build cwtch + - cd .. + - mv deb/cwtch.deb cwtch-$VERSION.deb + - rm -r deb + - name: linux-ui-tests image: openpriv/flutter-desktop:linux-fstable-3.13.4 diff --git a/linux/deb/control b/linux/deb/control new file mode 100644 index 00000000..f52a7fe9 --- /dev/null +++ b/linux/deb/control @@ -0,0 +1,5 @@ +Package: cwtch +Version: VERSION +Maintainer: Open Privacy Research Society +Architecture: all +Description: Metadata resistant privacy platform designed to help you resist surveillance