chore(forge): gather files to be signed for analysis

This commit is contained in:
Elian Doran
2025-04-30 11:29:20 +03:00
parent 614958f16c
commit 57c6dd2fee
2 changed files with 14 additions and 0 deletions

View File

@@ -12,7 +12,14 @@ module.exports = function (sourcePath) {
return;
}
const outputDir = path.join(__dirname, "sign");
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}
try {
const destPath = path.join(outputDir, path.basename(sourcePath));
fs.copyFileSync(sourcePath, destPath);
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${sourcePath}"`;
console.log(`[Sign] ${command}`);