mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Add metadata for Debian package generation and deb build step in build.sh
This commit is contained in:
parent
2d1cf621db
commit
f23b1ecae7
2 changed files with 23 additions and 0 deletions
|
|
@ -21,3 +21,7 @@ if ! command -v zip &> /dev/null; then
|
|||
apt-get update && apt-get install -yq zip
|
||||
fi
|
||||
zip -r "$ARTIFACT_NAME.zip" "$ARTIFACT_NAME"
|
||||
|
||||
# build deb package (see https://crates.io/crates/cargo-deb)
|
||||
## run it after build
|
||||
cargo deb -p yazi-fm --no-build
|
||||
|
|
|
|||
|
|
@ -76,3 +76,22 @@ path = "src/main.rs"
|
|||
[package.metadata.binstall]
|
||||
pkg-url = "{repo}/releases/download/v{version}/yazi-{target}{archive-suffix}"
|
||||
bin-dir = "yazi-{target}/{bin}{binary-ext}"
|
||||
|
||||
[package.metadata.deb]
|
||||
license-file = ["../LICENSE", "0"]
|
||||
extended-description = """
|
||||
Yazi is a terminal file manager written in Rust, based on non-blocking async
|
||||
I/O. It aims to provide an efficient, user-friendly, and customizable file
|
||||
management experience.
|
||||
"""
|
||||
depends = "file, ffmpeg, 7zip, jq, poppler-utils, fd-find, ripgrep, fzf, zoxide, imagemagick, xsel|xclip|wl-clipboard"
|
||||
recommends = "bash-completion"
|
||||
section = "utility"
|
||||
priority = "optional"
|
||||
assets = [
|
||||
["target/release/ya", "usr/bin/", "755"],
|
||||
["target/release/yazi", "usr/bin/", "755"],
|
||||
{ source = "../README.md", dest = "usr/share/doc/yazi-fm/README", mode = "644"},
|
||||
{ source = "../yazi-cli/completions/ya.bash", dest = "usr/share/bash-completion/completions/ya", mode = "644"},
|
||||
{ source = "../yazi-boot/completions/yazi.bash", dest = "usr/share/bash-completion/completions/yazi", mode = "644"},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue