Skip to content

Commit

Permalink
cross paltform
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 14, 2024
1 parent 332e369 commit 79caaf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/tauri-bundler/src/bundle/windows/nsis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ const NSIS_REQUIRED_FILES: &[&str] = &[
"Include/WinMessages.nsh",
];
#[cfg(target_os = "windows")]
const NSIS_PLUGIN_DLLS: &[&str] = &[
const NSIS_PLUGIN_FILES: &[&str] = &[
"NSISdl.dll",
"StartMenu.dll",
"System.dll",
"nsDialogs.dll",
"nsis_tauri_utils.dll",
];
#[cfg(not(target_os = "windows"))]
const NSIS_PLUGIN_FILES: &[&str] = &[];
#[cfg(not(target_os = "windows"))]
const NSIS_REQUIRED_FILES: &[&str] = &["Plugins/x86-unicode/nsis_tauri_utils.dll"];

const NSIS_REQUIRED_FILES_HASH: &[(&str, &str, &str, HashAlgorithm)] = &[(
Expand Down Expand Up @@ -525,10 +527,9 @@ fn build_nsis_app_installer(
));
fs::create_dir_all(nsis_installer_path.parent().unwrap())?;

#[cfg(target_os = "windows")]
if settings.can_sign() {
log::info!("Signing NSIS plugins");
for dll in NSIS_PLUGIN_DLLS {
for dll in NSIS_PLUGIN_FILES {
let path = _nsis_toolset_path.join("Plugins/x86-unicode").join(dll);
try_sign(&path, settings)?;
}
Expand Down

0 comments on commit 79caaf0

Please sign in to comment.