drone: add .deb generation support
This commit is contained in:
parent
50c9f66aca
commit
ddc23e35ca
13
.drone.yml
13
.drone.yml
|
@ -55,11 +55,24 @@ steps:
|
||||||
- flutter build linux --dart-define BUILD_VER=`cat VERSION` --dart-define BUILD_DATE=`cat COMMIT_DATE`
|
- flutter build linux --dart-define BUILD_VER=`cat VERSION` --dart-define BUILD_DATE=`cat COMMIT_DATE`
|
||||||
- linux/package-release.sh
|
- linux/package-release.sh
|
||||||
- mkdir -p deploy/cwtch
|
- 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
|
- cp -r build/linux/x64/release/bundle/* deploy/cwtch
|
||||||
- cd deploy
|
- 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 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
|
- 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
|
- rm -r cwtch
|
||||||
|
- cd deb
|
||||||
|
- dpkg-deb --build cwtch
|
||||||
|
- cd ..
|
||||||
|
- mv deb/cwtch.deb cwtch-$VERSION.deb
|
||||||
|
- rm -r deb
|
||||||
|
|
||||||
|
|
||||||
- name: linux-ui-tests
|
- name: linux-ui-tests
|
||||||
image: openpriv/flutter-desktop:linux-fstable-3.13.4
|
image: openpriv/flutter-desktop:linux-fstable-3.13.4
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue