Skip to content

Commit

Permalink
Add shell completions and manpages to debian package (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d authored Dec 15, 2024
1 parent dc60e21 commit 1d7b152
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ reqwest = { version = "=0.12.9", default-features = false, features = ["blocking
[build-dependencies]
vergen-gix = { version = "1.0.3", features = ["cargo", "rustc"] }

[package.metadata.deb]
assets = [
{ source = "target/release/hanko", dest = "/usr/bin/", mode = "755"},
{ source = "README.md", dest = "/usr/share/doc/hanko/", mode = "644"},
{ source = "assets/completions/hanko.bash", dest = "/usr/share/bash-completion/completions/hanko", mode = "644"},
{ source = "assets/completions/_hanko", dest = "/usr/share/zsh/vendor-completions/", mode = "644"},
{ source = "assets/completions/hanko.fish", dest = "/usr/share/fish/vendor_completions.d/", mode = "644"},
{ source = "assets/completions/hanko.elv", dest = "/usr/share/elvish/lib/", mode = "644"},
{ source = "assets/manpages/*", dest = "/usr/share/man/man1/", mode = "644"},
]

[features]
default = ["detect-allowed-signers"]
detect-allowed-signers = ["dep:gix-config"]
Expand Down

0 comments on commit 1d7b152

Please sign in to comment.