fn resolve_backend_binary(
backend_name: &str,
exe_suffix: &str,
) -> Result<PathBuf, String>Expand description
Resolve the backend binary path.
The CEF host lives in runtime/ alongside the backend binary in portable builds,
so exe_dir IS the runtime directory. Search order:
- Same dir as CEF host: {name}-{version}-{os}.{arch}.exe (versioned portable)
- Same dir as CEF host: {name}.exe (dev mode — cargo build output)
- Workspace dist/bin/: {name}-{version}-{os}.{arch}.exe
- Workspace dist/bin/: {name}.exe (plain fallback)