Skip to content

Commit

Permalink
read Cargo version from env
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Sep 3, 2024
1 parent 1681e80 commit e1e8bbc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/hc_launch/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ lair_keystore_api = { workspace = true }


clap = { version = "4.0", features = [ "derive", "env" ] }
const_format = "0.2.32"
log = "0.4.14"
mime_guess = "2.0.4"
notify= "5.0.0"
Expand Down
5 changes: 4 additions & 1 deletion crates/hc_launch/src-tauri/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ use crate::launch_tauri::launch_tauri;
use crate::prepare_webapp;
use holochain_cli_sandbox::cmds::{Create, Existing, NetworkCmd, NetworkType};

const VERSION: &str =
const_format::concatcp!(env!("CARGO_PKG_VERSION"), " (holochain 0.4.0-dev.21)",);

#[derive(Debug, Parser)]
#[command(version = "0.400.0-dev.0 (holochain 0.4.0-dev.21)")]
#[command(version = VERSION)]
#[command(author, about, long_about = None)]
/// Helper for launching holochain apps in a Holochain Launcher environment for testing and development purposes.
///
Expand Down

0 comments on commit e1e8bbc

Please sign in to comment.