From dbece13de36b5b713178a39014a461296ec53b22 Mon Sep 17 00:00:00 2001 From: Jeremy Spiegel Date: Tue, 1 Nov 2022 17:22:24 -0700 Subject: [PATCH] Add quotes --- .../src/windowsExecutableCodeSignatureVerifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts b/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts index 7b876b57f82..28e624204a6 100644 --- a/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts +++ b/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts @@ -32,7 +32,7 @@ export function verifySignature(publisherNames: Array, unescapedTempUpda // https://github.com/electron-userland/electron-builder/issues/2535 execFile( "chcp 65001 >NUL & powershell.exe", - ["-NoProfile", "-NonInteractive", "-InputFormat", "None", "-Command", `Get-AuthenticodeSignature -LiteralPath '${tempUpdateFile}' | ConvertTo-Json -Compress`], + ["-NoProfile", "-NonInteractive", "-InputFormat", "None", "-Command", `"Get-AuthenticodeSignature -LiteralPath '${tempUpdateFile}' | ConvertTo-Json -Compress"`], { shell: true, timeout: 20 * 1000,