mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
8 lines
300 B
JavaScript
8 lines
300 B
JavaScript
const child_process = require("child_process");
|
|
const SIGN_EXECUTABLE = "C:\\ev_signer_trilium\\ev_signer_trilium.exe";
|
|
|
|
module.exports = function (filePath) {
|
|
const command = `${SIGN_EXECUTABLE} --executable "${filePath}"`;
|
|
console.log(`> ${command}`);
|
|
child_process.execSync(command);
|
|
} |