I have a tauri command like this:
#[tauri::command]
fn install_apk() -> Result<bool, String> {
let output = Command::new("adb")
.args(&["install", "../resources/settings_apk-debug.apk"])
.output()
.expect("Failed to install APK");
if output.status.success() {
Ok(true)
} else {
Ok(false)
}
}
That command runs perfectly fine in dev. But when in production build it crashes the app and i have no idea why.
Can someone help?