Skip to content

Commit

Permalink
Organize the executable code
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Feb 5, 2024
1 parent e7cb469 commit d6a127f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rust_crate/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ fn main() {
let dart_command_args: Vec<String> = env::args().skip(1).collect();

// Build the command to run the Dart script.
#[cfg(target_family = "windows")]
let mut command = process::Command::new("dart.bat");
#[cfg(target_family = "unix")]
let mut command = process::Command::new("dart");
let dart_path = which::which("dart").expect("Couldn't find Dart executable");
let mut command = process::Command::new(dart_path);
command.args(["run", "rinf"]);
command.args(&dart_command_args);

Expand Down

0 comments on commit d6a127f

Please sign in to comment.