mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-22 17:30:52 +02:00
build: properly handle daemon build
This commit is contained in:
+11
-5
@@ -75,14 +75,20 @@ fn external_binaries_exist() -> bool {
|
||||
|
||||
let binaries_dir = PathBuf::from(&manifest_dir).join("binaries");
|
||||
|
||||
// Check for required external binaries
|
||||
let donut_proxy_name = if target.contains("windows") {
|
||||
format!("donut-proxy-{}.exe", target)
|
||||
// Check for all required external binaries (must match tauri.conf.json externalBin)
|
||||
let (donut_proxy_name, donut_daemon_name) = if target.contains("windows") {
|
||||
(
|
||||
format!("donut-proxy-{}.exe", target),
|
||||
format!("donut-daemon-{}.exe", target),
|
||||
)
|
||||
} else {
|
||||
format!("donut-proxy-{}", target)
|
||||
(
|
||||
format!("donut-proxy-{}", target),
|
||||
format!("donut-daemon-{}", target),
|
||||
)
|
||||
};
|
||||
|
||||
binaries_dir.join(&donut_proxy_name).exists()
|
||||
binaries_dir.join(&donut_proxy_name).exists() && binaries_dir.join(&donut_daemon_name).exists()
|
||||
}
|
||||
|
||||
fn ensure_dist_folder_exists() {
|
||||
|
||||
Reference in New Issue
Block a user