improved logging for sign.js

This commit is contained in:
Jarek Kowalski committed 2020-03-31 21:21:32 -07:00
1 parent 6ad927384b
commit e0984641ba
2 files changed
+8 -4

No files matched your search

+3 -1
View File
@@ -63,7 +63,9 @@
}
],
"sign": "./sign.js",
"signingHashAlgorithms": ["sha256"]
"signingHashAlgorithms": [
"sha256"
]
},
"mac": {
"hardenedRuntime": true,
+5 -3
View File
@@ -1,6 +1,4 @@
const { spawnSync } = require("child_process");
const signTool = process.env.WINDOWS_SIGN_TOOL || "signtool.exe";
exports.default = async function (configuration) {
if (process.platform !== "win32") {
return;
@@ -12,6 +10,10 @@ exports.default = async function (configuration) {
return;
}
const signTool = process.env.WINDOWS_SIGN_TOOL || "signtool.exe";
console.log('signTool', signTool);
const signToolArgs = [
"sign",
"/sha1", sha1,
@@ -37,7 +39,7 @@ exports.default = async function (configuration) {
nextSleepTime *= 2;
const result = spawnSync(signTool, signToolArgs, {
// stdio: "inherit",
stdio: "inherit",
});
if (!result.error && 0 === result.status) {