|
|
|
@ -9,6 +9,11 @@ function sign(sourcePath) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (path.extname(sourcePath) !== ".exe") {
|
|
|
|
|
|
|
|
console.warn("[Sign] Unsupported extension for signing: ", sourcePath);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${sourcePath}"`;
|
|
|
|
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${sourcePath}"`;
|
|
|
|
console.log(`[Sign] ${command}`);
|
|
|
|
console.log(`[Sign] ${command}`);
|
|
|
|
@ -16,7 +21,6 @@ function sign(sourcePath) {
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
console.error("[Sign] Got error while signing " + e.output.toString("utf-8"));
|
|
|
|
console.error("[Sign] Got error while signing " + e.output.toString("utf-8"));
|
|
|
|
printSigningErrorLogs();
|
|
|
|
printSigningErrorLogs();
|
|
|
|
process.exit(2);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|