mirror of
https://github.com/zadam/trilium.git
synced 2025-12-09 20:26:09 +08:00
chore(nx/ci): display output of signing
This commit is contained in:
parent
3f7b42d656
commit
b2f8b0014f
1 changed files with 7 additions and 1 deletions
|
|
@ -1,8 +1,12 @@
|
|||
const child_process = require("child_process");
|
||||
const fs = require("fs");
|
||||
|
||||
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;
|
||||
|
|
@ -10,5 +14,7 @@ module.exports = function (filePath) {
|
|||
|
||||
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
||||
console.log(`[Sign] ${command}`);
|
||||
child_process.execSync(command);
|
||||
|
||||
const output = child_process.execSync(command);
|
||||
console.log(`[Sign] ${output}`);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue