From 882ddb6194954fc8d2449b8abf4dc98e13fd1839 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Wed, 2 Dec 2026 02:02:07 +0800 Subject: [PATCH] fix(core): resolve the bundled core for validation fingerprints --- src-tauri/src/core/validate.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/core/validate.rs b/src-tauri/src/core/validate.rs index 4871c238d..7d708ff42 100644 --- a/src-tauri/src/core/validate.rs +++ b/src-tauri/src/core/validate.rs @@ -7,6 +7,7 @@ use std::{ sync::LazyLock, sync::atomic::{AtomicBool, Ordering}, }; +use tauri::Manager as _; use tauri_plugin_shell::ShellExt as _; use tokio::fs; use tristr::alias::String; @@ -26,9 +27,10 @@ async fn validation_fingerprint(yaml: &str) -> u64 { let mut hasher = DefaultHasher::new(); yaml.hash(&mut hasher); core.as_str().hash(&mut hasher); - let binary = std::env::current_exe() - .into_iter() - .map(|exe| exe.with_file_name(format!("{}{}", core.as_str(), std::env::consts::EXE_SUFFIX))); + let binary = handle::Handle::app_handle() + .path() + .resolve_external_bin(core.as_str()) + .into_iter(); // The test run reads geo databases from the app dir; a geo update must revalidate. let geo = dirs::app_home_dir().into_iter().flat_map(|dir| { super::runtime_bundle::GEO_ASSETS