diff --git a/.changes/cli-signtool-path.md b/.changes/cli-signtool-path.md index 03784a56b..09800796b 100644 --- a/.changes/cli-signtool-path.md +++ b/.changes/cli-signtool-path.md @@ -2,4 +2,4 @@ "tauri-bundler": patch:feat --- -`TAURI_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe. +`TAURI_WINDOWS_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe. diff --git a/tooling/bundler/src/bundle/windows/sign.rs b/tooling/bundler/src/bundle/windows/sign.rs index a0e20860d..7ce214061 100644 --- a/tooling/bundler/src/bundle/windows/sign.rs +++ b/tooling/bundler/src/bundle/windows/sign.rs @@ -59,7 +59,7 @@ fn signtool() -> Option { static SIGN_TOOL: OnceLock> = OnceLock::new(); SIGN_TOOL .get_or_init(|| { - if let Some(signtool) = std::env::var_os("TAURI_SIGNTOOL_PATH") { + if let Some(signtool) = std::env::var_os("TAURI_WINDOWS_SIGNTOOL_PATH") { return Ok(PathBuf::from(signtool)); } diff --git a/tooling/cli/ENVIRONMENT_VARIABLES.md b/tooling/cli/ENVIRONMENT_VARIABLES.md index 98d664067..c10126972 100644 --- a/tooling/cli/ENVIRONMENT_VARIABLES.md +++ b/tooling/cli/ENVIRONMENT_VARIABLES.md @@ -20,6 +20,7 @@ These environment variables are inputs to the CLI which may have an equivalent C - `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` — The signing private key password, see `TAURI_SIGNING_PRIVATE_KEY`. - `TAURI_SIGNING_RPM_KEY` — The private GPG key used to sign the RPM bundle, exported to its ASCII-armored format. - `TAURI_SIGNING_RPM_KEY_PASSPHRASE` — The GPG key passphrase for `TAURI_SIGNING_RPM_KEY`, if needed. +- `TAURI_WINDOWS_SIGNTOOL_PATH` — Specify a path to `signtool.exe` used for code signing the application on Windows. - `APPLE_CERTIFICATE` — Base64 encoded of the `.p12` certificate for code signing. To get this value, run `openssl base64 -in MyCertificate.p12 -out MyCertificate-base64.txt`. - `APPLE_CERTIFICATE_PASSWORD` — The password you used to export the certificate. - `APPLE_ID` — The Apple ID used to notarize the application. If this environment variable is provided, `APPLE_PASSWORD` and `APPLE_TEAM_ID` must also be set. Alternatively, `APPLE_API_KEY` and `APPLE_API_ISSUER` can be used to authenticate.