fix: restore ratatui deps in cub-tui, add cubl host recipe
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
[source]
|
||||||
|
same_as = "../../system/cub"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
template = "custom"
|
||||||
|
dev-dependencies = ["host:rust"]
|
||||||
|
script = """
|
||||||
|
DYNAMIC_INIT
|
||||||
|
|
||||||
|
cd "${COOKBOOK_SOURCE}/source"
|
||||||
|
cargo build --release --target x86_64-unknown-linux-gnu -p cub-cli
|
||||||
|
|
||||||
|
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
|
||||||
|
cp target/x86_64-unknown-linux-gnu/release/cub "${COOKBOOK_STAGE}/usr/bin/cubl"
|
||||||
|
chmod +x "${COOKBOOK_STAGE}/usr/bin/cubl"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[package]
|
||||||
|
description = "Cub package manager for Linux build host (cubl)"
|
||||||
@@ -11,4 +11,9 @@ name = "cub_tui"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
cub = { package = "cub-lib", path = "../cub-lib" }
|
||||||
|
ratatui = { version = "0.30", default-features = false, features = ["termion"] }
|
||||||
termion = "4.0.6"
|
termion = "4.0.6"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
tempfile = "3"
|
||||||
|
|||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
../../local/recipes/dev/cubl
|
||||||
Reference in New Issue
Block a user