mirror of
https://github.com/kopia/kopia.git
synced 2026-10-22 06:04:47 -04:00
improved logging for sign.js
This commit is contained in:
1 parent
6ad927384b
commit
e0984641ba
2 files changed
+8
-4
No files matched your search
+3
-1
@@ -63,7 +63,9 @@
|
||||
}
|
||||
],
|
||||
"sign": "./sign.js",
|
||||
"signingHashAlgorithms": ["sha256"]
|
||||
"signingHashAlgorithms": [
|
||||
"sha256"
|
||||
]
|
||||
},
|
||||
"mac": {
|
||||
"hardenedRuntime": true,
|
||||
|
||||
+5
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user