ci: add FFmpeg preflight workflow and helpers
This commit is contained in:
13
src-tauri/src/bin/check_ffmpeg.rs
Normal file
13
src-tauri/src/bin/check_ffmpeg.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
fn main() {
|
||||
// Call the library's FFmpeg preflight check used by the application.
|
||||
match radio_tauri_lib::player::preflight_ffmpeg_only() {
|
||||
Ok(()) => {
|
||||
println!("FFmpeg preflight OK");
|
||||
std::process::exit(0);
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("FFmpeg preflight failed: {}", e);
|
||||
std::process::exit(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user