mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
chore(forge): gather files to be signed for analysis
This commit is contained in:
@@ -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}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user