From 912d2b1e0a16142b200293c0ae5ae0d9aff8e907 Mon Sep 17 00:00:00 2001 From: antelle Date: Sun, 5 Apr 2020 22:45:46 +0200 Subject: [PATCH] signtool --- build/tasks/grunt-sign-exe.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/tasks/grunt-sign-exe.js b/build/tasks/grunt-sign-exe.js index d9e83b6c..c7cbbfe4 100644 --- a/build/tasks/grunt-sign-exe.js +++ b/build/tasks/grunt-sign-exe.js @@ -42,12 +42,13 @@ module.exports = function(grunt) { const taskResult = await runRemoteTask(opt.windows, zipContents); const signedFile = taskResult.file; - // C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe - const res = spawnSync('signtool', ['verify', '/pa', '/sha1', opt.certHash, signedFile]); + const signtool = + 'C:\\Program Files (x86)\\Windows Kits\\10\\App Certification Kit\\signtool.exe'; + const res = spawnSync(signtool, ['verify', '/pa', '/sha1', opt.certHash, signedFile]); // eslint-disable-next-line no-console console.log('res.status', res.status); - const res2 = spawnSync('signtool', [ + const res2 = spawnSync(signtool, [ 'verify', '/pa', '/sha1',