diff --git a/contrib/hx b/contrib/hx new file mode 100755 index 000000000000..148f7776a916 --- /dev/null +++ b/contrib/hx @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +HELIX_RUNTIME=/usr/lib/helix/runtime exec /usr/lib/helix/hx "$@" diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 83d6ccc9269b..0a2f9f33e133 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -12,6 +12,26 @@ categories.workspace = true repository.workspace = true homepage.workspace = true +[package.metadata.deb] +# generate a .deb in target/debian/ with the command: +# cargo build --profile opt --locked +# cargo deb --no-build +name = "helix" +assets = [ + { source = "target/release/hx", dest = "/usr/lib/helix/", mode = "755" }, + { source = "../contrib/hx", dest = "/usr/bin/", mode = "755" }, + { source = "../runtime/*", dest = "/usr/lib/helix/runtime/", mode = "644" }, + { source = "../runtime/grammars/*", dest = "/usr/lib/helix/runtime/grammars/", mode = "644" }, # to avoid sources/ + { source = "../runtime/queries/**/*", dest = "/usr/lib/helix/runtime/queries/", mode = "644" }, + { source = "../runtime/themes/**/*", dest = "/usr/lib/helix/runtime/themes/", mode = "644" }, + { source = "../README.md", dest = "/usr/share/doc/helix/", mode = "644" }, + { source = "../contrib/completion/hx.bash", dest = "/usr/share/bash-completion/completions/hx", mode = "644" }, + { source = "../contrib/completion/hx.fish", dest = "/usr/share/fish/vendor_completions.d/hx.fish", mode = "644" }, + { source = "../contrib/completion/hx.zsh", dest = "/usr/share/zsh/vendor-completions/_hx", mode = "644" }, + { source = "../contrib/Helix.desktop", dest = "/usr/share/applications/Helix.desktop", mode = "644" }, + { source = "../contrib/helix.png", dest = "/usr/share/icons/hicolor/256x256/apps/helix.png", mode = "644" }, +] + [features] default = ["git"] unicode-lines = ["helix-core/unicode-lines", "helix-view/unicode-lines"]