Skip to content

Commit

Permalink
fix: Windows-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
oissevalt committed Dec 7, 2023
1 parent 4faa124 commit c357a2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,7 @@ fn run_command(path: impl AsRef<Path>) {
std::thread::sleep(std::time::Duration::from_secs(2));
if let Err(err) = Command::new("cmd")
.current_dir(path)
.args([
"/C",
"start",
"",
path.as_ref().join(SEAL_EXE).to_string_lossy(),
])
.args(["/C", "start", "", path.as_ref().join(SEAL_EXE)])
.spawn()
{
eprintln!("\n{}\n", format!("出现错误: {}", err).red());
Expand Down

0 comments on commit c357a2d

Please sign in to comment.