From 332e3692b22cf0850436ef7e41a535e5cc058118 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:16:53 +0200 Subject: [PATCH] Update crates/tauri-bundler/src/bundle/windows/nsis/mod.rs Co-authored-by: Amr Bashir --- .../src/bundle/windows/nsis/mod.rs | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs b/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs index f77ac146866d..2656b2f1f204 100644 --- a/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs +++ b/crates/tauri-bundler/src/bundle/windows/nsis/mod.rs @@ -528,23 +528,9 @@ fn build_nsis_app_installer( #[cfg(target_os = "windows")] if settings.can_sign() { log::info!("Signing NSIS plugins"); - for dll in glob::glob( - _nsis_toolset_path - .join("Plugins/*/*.dll") - .to_string_lossy() - .to_string() - .as_str(), - )? { - let path = dll?; - if NSIS_PLUGIN_DLLS.contains( - &path - .file_name() - .unwrap_or_default() - .to_string_lossy() - .as_ref(), - ) { - try_sign(&path, settings)?; - } + for dll in NSIS_PLUGIN_DLLS { + let path = _nsis_toolset_path.join("Plugins/x86-unicode").join(dll); + try_sign(&path, settings)?; } }