diff --git a/Cargo.toml b/Cargo.toml index b037d61..6c34967 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,4 +38,10 @@ 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" +license-file = ["LICENSE", "1"] \ No newline at end of file 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