From 47340e4a405af1fdcb16d7f37e31e8fc7da912f0 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 26 Jan 2020 00:43:25 +0100 Subject: [PATCH 1/3] Add basic deb packaging metadata --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fccfc68..4998e9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,4 +38,9 @@ libc = "0.2.62" zip = "0.5.3" [build-dependencies] -cmake = "0.1.31" \ No newline at end of file +cmake = "0.1.31" + +[package.metadata.deb] +maintainer = "Federico Terzi " +depends = "$auto, systemd, libxtst6, libxdo3, xclip, libnotify-bin" +section = "utility" From fa74737d5d03e2ae719003df3282f603478e44e6 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 26 Jan 2020 22:00:44 +0100 Subject: [PATCH 2/3] Add license file to deb package --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 4998e9a..5d0fccc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,4 @@ cmake = "0.1.31" maintainer = "Federico Terzi " depends = "$auto, systemd, libxtst6, libxdo3, xclip, libnotify-bin" section = "utility" +license-file = ["LICENSE", "1"] \ No newline at end of file From 15ad35046aaec5610bfb82c2ec04ce0b38aee94b Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 26 Jan 2020 22:13:07 +0100 Subject: [PATCH 3/3] Add DEB packaging to CI --- ci/build-linux.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/build-linux.yml b/ci/build-linux.yml index a8e2dd8..c0fc49f 100644 --- a/ci/build-linux.yml +++ b/ci/build-linux.yml @@ -7,4 +7,12 @@ steps: cp target/release/espanso-*.gz . sha256sum espanso-*.gz | awk '{ print $1 }' > espanso-linux-sha256.txt ls -la - displayName: "Cargo build and packaging for Linux" \ No newline at end of file + displayName: "Cargo build and packaging for Linux" + + - script: | + cargo install cargo-deb + cargo deb + cp target/release/debian/espanso*amd64.deb espanso-debian-amd64.deb + sha256sum espanso-*amd64.deb | awk '{ print $1 }' > espanso-debian-amd64-sha256.txt + ls -la + displayName: "Packaging deb package" \ No newline at end of file