This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 23:29:00 +08:00
parent c70995fbc9
commit 231e4167d3
6 changed files with 29 additions and 5 deletions

View File

@@ -364,6 +364,11 @@ async fn run_script_bundle(
for (key, value) in config_env {
cmd.env(key, value);
}
if let Some(ffmpeg_path) = crate::ffmpeg::locate_ffmpeg() {
if ffmpeg_path.exists() {
cmd.env("AICLIENT_FFMPEG_PATH", ffmpeg_path);
}
}
let mut child = cmd.spawn()?;
// 把 params JSON 灌进 stdin