mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 18:42:28 +08:00
chore(nx/ci): display output of signing
This commit is contained in:
parent
3f7b42d656
commit
b2f8b0014f
@ -1,8 +1,12 @@
|
|||||||
const child_process = require("child_process");
|
const child_process = require("child_process");
|
||||||
|
const fs = require("fs");
|
||||||
|
|
||||||
module.exports = function (filePath) {
|
module.exports = function (filePath) {
|
||||||
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
|
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
|
||||||
|
|
||||||
|
const stats = fs.lstatSync(filePath);
|
||||||
|
console.log(filePath, stats);
|
||||||
|
|
||||||
if (!WINDOWS_SIGN_EXECUTABLE) {
|
if (!WINDOWS_SIGN_EXECUTABLE) {
|
||||||
console.warn("[Sign] Skip signing due to missing environment variable.");
|
console.warn("[Sign] Skip signing due to missing environment variable.");
|
||||||
return;
|
return;
|
||||||
@ -10,5 +14,7 @@ module.exports = function (filePath) {
|
|||||||
|
|
||||||
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
|
||||||
console.log(`[Sign] ${command}`);
|
console.log(`[Sign] ${command}`);
|
||||||
child_process.execSync(command);
|
|
||||||
|
const output = child_process.execSync(command);
|
||||||
|
console.log(`[Sign] ${output}`);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user