added close; fixed some issues
This commit is contained in:
@ -45,18 +45,6 @@ pub fn python_exe() -> PathBuf {
|
||||
root.join(".venv").join("bin").join("python3")
|
||||
}
|
||||
|
||||
/// Absolute path to the bundled ffmpeg binary.
|
||||
/// Uses a sidecar in resources/bin/ when packaged, otherwise expects it on PATH.
|
||||
pub fn ffmpeg_exe() -> PathBuf {
|
||||
let root = project_root();
|
||||
let bundled = root.join("bin").join("ffmpeg");
|
||||
if bundled.exists() {
|
||||
return bundled;
|
||||
}
|
||||
// Fallback to system ffmpeg during development
|
||||
PathBuf::from("ffmpeg")
|
||||
}
|
||||
|
||||
/// Absolute path to a script in the backend directory.
|
||||
pub fn backend_script(name: &str) -> PathBuf {
|
||||
project_root().join("backend").join(name)
|
||||
|
||||
Reference in New Issue
Block a user