mirror of https://github.com/tauri-apps/tauri
feat: `TAURI_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe. (#10588)
This commit is contained in:
parent
fedf93eb7e
commit
f8d658ea1b
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"tauri-bundler": patch:feat
|
||||
---
|
||||
|
||||
`TAURI_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe.
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue