fix ci
This commit is contained in:
parent
7ce86c6f53
commit
a1e7abbb70
@ -1,7 +1,6 @@
|
|||||||
#![windows_subsystem = "windows"]
|
#![windows_subsystem = "windows"]
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
os::windows::process::CommandExt,
|
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
process::{Command, Stdio},
|
process::{Command, Stdio},
|
||||||
};
|
};
|
||||||
@ -47,7 +46,10 @@ fn execute(path: PathBuf, args: Vec<String>) {
|
|||||||
let mut cmd = Command::new(path);
|
let mut cmd = Command::new(path);
|
||||||
cmd.args(args);
|
cmd.args(args);
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
cmd.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW);
|
{
|
||||||
|
use std::os::windows::process::CommandExt;
|
||||||
|
cmd.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW);
|
||||||
|
}
|
||||||
cmd.env(APPNAME_RUNTIME_ENV_KEY, exe_name)
|
cmd.env(APPNAME_RUNTIME_ENV_KEY, exe_name)
|
||||||
.stdin(Stdio::inherit())
|
.stdin(Stdio::inherit())
|
||||||
.stdout(Stdio::inherit())
|
.stdout(Stdio::inherit())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user