fix(nsis): plugins not signed (#14627)

This commit is contained in:
Tony
2025-12-08 20:13:52 +08:00
committed by GitHub
parent 018b4db22e
commit 91becd9e4f
2 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
tauri-bundler: patch:bug
---
Fix NSIS plugins not being signed due to wrong path handlings

View File

@@ -621,13 +621,16 @@ fn build_nsis_app_installer(
fs::create_dir_all(nsis_installer_path.parent().unwrap())?;
if settings.windows().can_sign() {
log::info!("Signing NSIS plugins");
for dll in NSIS_PLUGIN_FILES {
let path = additional_plugins_path.join(dll);
if path.exists() {
try_sign(&path, settings)?;
} else {
log::warn!("Could not find {}, skipping signing", path.display());
if let Some(plugin_copy_path) = &maybe_plugin_copy_path {
let plugin_copy_path = plugin_copy_path.join("x86-unicode");
log::info!("Signing NSIS plugins");
for dll in NSIS_PLUGIN_FILES {
let path = plugin_copy_path.join(dll);
if path.exists() {
try_sign(&path, settings)?;
} else {
log::warn!("Could not find {}, skipping signing", path.display());
}
}
}
}