refactor: check for camoufox inside install dir directly

This commit is contained in:
zhom
2025-08-09 08:51:36 +04:00
parent 8d9654044a
commit 467e82ca93
4 changed files with 20 additions and 11 deletions
+6
View File
@@ -45,6 +45,12 @@ impl Extractor {
return Ok(());
};
// For Camoufox on Linux, we expect the executable directly under version directory
// e.g., binaries/camoufox/<version>/camoufox, without an extra camoufox/ subdirectory
if browser_type == "camoufox" {
return Ok(());
}
let expected_subdir = dest_dir.join(browser_type);
// If the executable is not in the expected subdirectory, create the structure