Skip to content

Commit

Permalink
fix(md-tui)
Browse files Browse the repository at this point in the history
 closes #7060
  • Loading branch information
jhheider committed Aug 26, 2024
1 parent e6755fd commit 516a841
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions projects/crates.io/md-tui/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ distributable:

provides:
- bin/mdt
- bin/md-tui

versions:
github: henriklovhaug/md-tui
Expand All @@ -17,11 +18,18 @@ build:
- run: |
sed -i '/fn main() /a\
if std::env::args().nth(1) == Some("--version".to_string()) {\
println!("mdt v{{ version }}");\
println!("md-tui v{{ version }}");\
return Ok(());\
}\
' main.rs
working-directory: src
- cargo install --locked --path . --root {{prefix}}
# bin name changed in 0.8.5
- run:
- if test -f mdt; then ln -s mdt md-tui; fi
- if test -f md-tui; then ln -s md-tui mdt; fi
working-directory: ${{prefix}}/bin

test: test "$(mdt --version)" = "mdt v{{ version }}"
test:
- test "$(mdt --version)" = "md-tui v{{ version }}"
- test "$(md-tui --version)" = "md-tui v{{ version }}"

0 comments on commit 516a841

Please sign in to comment.