Skip to content

Commit cc6dcbe

Browse files
Merge pull request #22 from cherryramatisdev/fix/include-template-on-binary
Fix: Include template on the binary
2 parents 86a28c2 + a22ce50 commit cc6dcbe

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
install:
2+
./bin/compile
3+
mv target/release/rq ~/.local/bin

cli/src/tui/tui.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ pub fn call() -> anyhow::Result<()> {
7777
},
7878
};
7979

80-
let template = std::fs::read_to_string(format!(
81-
"{}/cli/src/tui/template.tiny",
82-
std::env::current_dir().unwrap().display(),
83-
))?;
80+
let template = include_str!("template.tiny").to_string();
8481

8582
let mut templates = Templates::new(template, root_view);
8683

@@ -98,6 +95,3 @@ pub fn call() -> anyhow::Result<()> {
9895

9996
Ok(())
10097
}
101-
102-
// https://p.modprog.de/pp3R.rs
103-
// https://p.modprog.de/EMam

0 commit comments

Comments
 (0)