mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 19:26:12 +08:00
chore(nx/forge): try to use real path for signing
This commit is contained in:
parent
d6c67b00e6
commit
31aff8a43a
1 changed files with 4 additions and 3 deletions
|
|
@ -1,17 +1,18 @@
|
|||
const child_process = require("child_process");
|
||||
const fs = require("fs");
|
||||
const { default: path } = require("path");
|
||||
|
||||
module.exports = function (filePath) {
|
||||
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
|
||||
|
||||
const stats = fs.lstatSync(filePath);
|
||||
console.log(filePath, stats);
|
||||
|
||||
if (!WINDOWS_SIGN_EXECUTABLE) {
|
||||
console.warn("[Sign] Skip signing due to missing environment variable.");
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(filePath, fs.realpathSync(filePath));
|
||||
filePath = fs.realpathSync(filePath);
|
||||
|
||||
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
||||
console.log(`[Sign] ${command}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue