docs/src/installation.md
77 lines · 2760 bytes
1# Installation
2
3It's about download (or building) the binary and putting them in an easily accessible location (like `/bin/`).
4
5The YouTube TUI is not tested for Windows.
6
7## Install from Crates.io (recommended)
8
9Crates.io is a repository for programs written in Rust, and the YouTube TUI is avaliable <a href="https://crates.io/crates/youtube-tui" target=_blank>*there*</a>.
10
11To install using this method, you will need `rustc` and `cargo` present. <a href="https://www.rust-lang.org/tools/install" target=_blank>*Here*</a>'s a tutorial on how to get them.
12
13Now, run the following command:
14
15```sh
16cargo install youtube-tui
17```
18
19> To check and update all programs installed from Crates.io, you can use CLI tools like <a href="https://crates.io/crates/cargo-update" target=_blank>*cargo-update*</a>.
20
21## AUR for Arch Linux (recommended)
22
23The YouTube TUI is avaliable in the AUR <a href="https://aur.archlinux.org/packages/youtube-tui-git" target=_blank>*here*</a>.
24
25Use an <a href="https://aur.archlinux.org" target=_blank>AUR</a> helper like <a href="https://aur.archlinux.org/packages/yay" target=_blank>`yay`</a> to install.
26
27```sh
28yay -S youtube-tui # replace `yay` with your AUR helper
29```
30
31## Download a compiled binary
32
33Download the compiled binary for your system from <a href="https://github.com/Siriusmart/youtube-tui/releases" target=_blank>*GitHub releases*</a> and manually place it in *a folder* (e.g. `~/.cargo/bin/` or `/bin/`)
34
35## Build from source
36
37Use the `cargo` command:
38
39```sh
40cargo install --git https://github.com/siriusmart/youtube-tui
41```
42
43### Confirm YouTube TUI has been installed
44
45Run the following command in terminal:
46
47```sh
48youtube-tui
49```
50
51If installed correctly, a TUI should be launched. Press `q` to close the TUI.
52
53## Features
54
55The TUI has features that can be enabled/disabled when compiling.
56
57```sh
58cargo install youtube-tui # install with all default features
59cargo install youtube-tui --no-default-features # install without any features enabled
60cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
61cargo install youtube-tui --no-default-features -F 'halfblock' -F 'sixel' # can install with multiple features by doing this
62cargo install youtube-tui --all-features # install with all features (even if not included in default)
63```
64
65### `halfblock` (default)
66
67Display images through HalfBlocks, work best in terminals with TrueColour support.
68
69### `sixel` (default)
70
71Display images with Sixels, allows the display of images at full definition. Not present on windows.
72
73Enabling this will also enable `halfblock`.
74
75Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>.
76
77> `sixel` and `halfblock` does not compile on Windows.