mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Add cargo deb
build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb` subsection to define how to build a debian "deb" install file using `cargo deb`. This will allow debian/ubuntu users to install `alacritty` using their system's package manager. It also will make it easier to provide pre-built binaries for those systems. Also fixed a stray debug line in the bash autocomplete script that was writting to a tempfile.
This commit is contained in:
parent
7433f45ff9
commit
4928b0ae75
3 changed files with 41 additions and 5 deletions
22
Cargo.toml
22
Cargo.toml
|
@ -5,6 +5,8 @@ authors = ["Joe Wilm <joe@jwilm.com>"]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
description = "GPU-accelerated terminal emulator"
|
description = "GPU-accelerated terminal emulator"
|
||||||
|
readme = "README.md"
|
||||||
|
homepage = "https://github.com/jwilm/alacritty"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
doc = false
|
doc = false
|
||||||
|
@ -57,3 +59,23 @@ gl_generator = "0.9"
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
debug = 1
|
debug = 1
|
||||||
|
|
||||||
|
[package.metadata.deb]
|
||||||
|
maintainer = "Joe Wilm <joe@jwilm.com>"
|
||||||
|
license-file = ["LICENSE-APACHE", "3"]
|
||||||
|
extended-description = """\
|
||||||
|
Alacritty is the fastest terminal emulator in existence. Using the GPU for \
|
||||||
|
rendering enables optimizations that simply aren't possible in other emulators. \
|
||||||
|
Alacritty currently supports FreeBSD, Linux, macOS, and OpenBSD. Windows \
|
||||||
|
support is planned before the 1.0 release. """
|
||||||
|
depends = "$auto, cmake, libfreetype6-dev, libfontconfig1-dev, xclip, gperf"
|
||||||
|
section = "rust"
|
||||||
|
priority = "optional"
|
||||||
|
assets = [
|
||||||
|
["target/release/alacritty", "usr/local/bin/", "755"],
|
||||||
|
["Alacritty.desktop", "usr/share/applications/", "644"],
|
||||||
|
["alacritty-completions.bash", "usr/share/bash-completion/completions/alacritty", "644"],
|
||||||
|
["alacritty-completions.fish", "usr/share/fish/completions/alacritty", "644"],
|
||||||
|
["alacritty-completions.zsh", "usr/share/zsh/functions/Completion/alacritty", "644"],
|
||||||
|
["alacritty.info", "usr/share/terminfo/a/alacritty", "644"],
|
||||||
|
]
|
||||||
|
|
23
README.md
23
README.md
|
@ -49,6 +49,17 @@ cd alacritty-git
|
||||||
makepkg -isr
|
makepkg -isr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Debian/Ubuntu
|
||||||
|
|
||||||
|
Using `cargo deb`, you can create and install a deb file.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone git@github.com:jwilm/alacritty.git
|
||||||
|
cd alacritty
|
||||||
|
cargo install cargo-deb
|
||||||
|
cargo deb --install
|
||||||
|
```
|
||||||
|
|
||||||
### openSUSE Tumbleweed Linux
|
### openSUSE Tumbleweed Linux
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -86,11 +97,14 @@ xbps-install alacritty
|
||||||
rustup update stable
|
rustup update stable
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Ubuntu
|
#### Debian/Ubuntu
|
||||||
|
|
||||||
On Ubuntu, you need a few extra libraries to build Alacritty. Here's an `apt`
|
You can build alacritty using `cargo deb` and use your system's package manager
|
||||||
command that should install all of them. If something is still found to be
|
to maintain the application using the instructions [above](#debianubuntu).
|
||||||
missing, please open an issue.
|
|
||||||
|
If you'd still like to build a local version manually, you need a few extra
|
||||||
|
libraries to build Alacritty. Here's an apt command that should install all of
|
||||||
|
them. If something is still found to be missing, please open an issue.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip
|
apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip
|
||||||
|
@ -244,6 +258,7 @@ cargo build --release
|
||||||
|
|
||||||
If all goes well, this should place a binary at `target/release/alacritty`.
|
If all goes well, this should place a binary at `target/release/alacritty`.
|
||||||
|
|
||||||
|
|
||||||
##### Desktop Entry
|
##### Desktop Entry
|
||||||
|
|
||||||
Many linux distributions support desktop entries for adding applications to
|
Many linux distributions support desktop entries for adding applications to
|
||||||
|
|
|
@ -15,7 +15,6 @@ _alacritty()
|
||||||
|
|
||||||
# If `--command` or `-e` is used, stop completing
|
# If `--command` or `-e` is used, stop completing
|
||||||
for i in "${!COMP_WORDS[@]}"; do
|
for i in "${!COMP_WORDS[@]}"; do
|
||||||
echo "${COMP_WORDS[i]}" >> ./testfile
|
|
||||||
if [[ "${COMP_WORDS[i]}" == "--command" ]] \
|
if [[ "${COMP_WORDS[i]}" == "--command" ]] \
|
||||||
|| [[ "${COMP_WORDS[i]}" == "-e" ]] \
|
|| [[ "${COMP_WORDS[i]}" == "-e" ]] \
|
||||||
&& [[ "${#COMP_WORDS[@]}" -gt "$(($i + 2))" ]]
|
&& [[ "${#COMP_WORDS[@]}" -gt "$(($i + 2))" ]]
|
||||||
|
|
Loading…
Reference in a new issue