Skip to content

Commit f8d658e

Browse files
authored
feat: TAURI_SIGNTOOL_PATH environment variable for specifying the path to signtool.exe. (#10588)
1 parent fedf93e commit f8d658e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changes/cli-signtool-path.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch:feat
3+
---
4+
5+
`TAURI_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe.

tooling/bundler/src/bundle/windows/sign.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ fn signtool() -> Option<PathBuf> {
5959
static SIGN_TOOL: OnceLock<crate::Result<PathBuf>> = OnceLock::new();
6060
SIGN_TOOL
6161
.get_or_init(|| {
62+
if let Some(signtool) = std::env::var_os("TAURI_SIGNTOOL_PATH") {
63+
return Ok(PathBuf::from(signtool));
64+
}
65+
6266
const INSTALLED_ROOTS_REGKEY_PATH: &str = r"SOFTWARE\Microsoft\Windows Kits\Installed Roots";
6367
const KITS_ROOT_REGVALUE_NAME: &str = r"KitsRoot10";
6468

0 commit comments

Comments
 (0)