-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62410fd
commit 63989ee
Showing
9 changed files
with
153 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "mpv-build"] | ||
path = mpv-build | ||
url = https://github.com/mpv-player/mpv-build | ||
branch = master |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"front-end", | ||
"fetcher", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ Listen to music from youtube inside terminal with sleek tui | |
--- | ||
|
||
# Installation | ||
NOTE: since the dependency `libmpv` seems not to be maintained anymore, | ||
|
||
you will probably need to build from source in any platform. See section *Build From Source* below. | ||
|
||
1) Download latest binary from [release page](https://github.com/sudipghimire533/ytui-music/releases/latest). | ||
If binary is not available for your platform, head on to [build from source](#building-from-source) | ||
|
||
|
@@ -70,7 +74,8 @@ git clone [email protected]:sudipghimire533/ytui-music | |
|
||
3) `cd` into source root and do: | ||
``` | ||
cargo build --all --release | ||
git submodule init | ||
MPV_BUILD=mpv-build/ cargo build --all --release --features libmpv_build | ||
``` | ||
|
||
4) The compiled binary is located in `target/release/` directory. Copy the `ytui_music` binary and place it somewhere where it is easy to run. Preferrably under `$PATH`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,14 @@ authors = ["Sudip Ghimire <[email protected]>"] | |
[dependencies] | ||
tokio = { version = "1", features = ["full"] } | ||
crossterm = { version = "0.20", features = ["event-stream"] } | ||
tui = { version = "0.16", features = ["crossterm"], default-features = false } | ||
tui = { package = "ratatui", version = "0.22.0", features = ["crossterm", "all-widgets"], default-features = false } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
libmpv = { version = "2.0.1" } | ||
libmpv = { git = "https://github.com/sudipghimire533/libmpv-rs", branch = "master" } | ||
fetcher = { path = "../fetcher" } | ||
lazy_static = "1.4.0" | ||
config = { path = "../config" } | ||
reqwest = { version = "0.11", features = ["json", "gzip"] } | ||
|
||
[features] | ||
build_libmpv = ["libmpv/build_libmpv"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.