mirror of
https://github.com/zadam/trilium.git
synced 2025-10-04 04:25:57 +08:00
feat(signing): improve error logging in case of error
This commit is contained in:
parent
1abcf7244f
commit
4adaf97127
1 changed files with 9 additions and 3 deletions
|
@ -17,8 +17,14 @@ module.exports = function (filePath) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
||||||
console.log(`[Sign] ${command}`);
|
console.log(`[Sign] Running ${command}`);
|
||||||
|
|
||||||
const output = child_process.execSync(command);
|
try {
|
||||||
console.log(`[Sign] ${output}`);
|
child_process.execSync(command);
|
||||||
|
} catch (e) {
|
||||||
|
console.warn(`[Sign] Unable to sign ${filePath} due to:\n${e.stdout.toString("utf-8")})}`)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`[Sign] Signed ${filePath} successfully.`);
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue