Skip to content

Commit

Permalink
feat: TAURI_SIGNTOOL_PATH environment variable for specifying the p…
Browse files Browse the repository at this point in the history
…ath to signtool.exe. (#10588)
  • Loading branch information
anatawa12 authored Aug 13, 2024
1 parent fedf93e commit f8d658e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/cli-signtool-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch:feat
---

`TAURI_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe.
4 changes: 4 additions & 0 deletions tooling/bundler/src/bundle/windows/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ fn signtool() -> Option<PathBuf> {
static SIGN_TOOL: OnceLock<crate::Result<PathBuf>> = OnceLock::new();
SIGN_TOOL
.get_or_init(|| {
if let Some(signtool) = std::env::var_os("TAURI_SIGNTOOL_PATH") {
return Ok(PathBuf::from(signtool));
}

const INSTALLED_ROOTS_REGKEY_PATH: &str = r"SOFTWARE\Microsoft\Windows Kits\Installed Roots";
const KITS_ROOT_REGVALUE_NAME: &str = r"KitsRoot10";

Expand Down

0 comments on commit f8d658e

Please sign in to comment.