Skip to content

Commit b2f8b00

Browse files
committed
chore(nx/ci): display output of signing
1 parent 3f7b42d commit b2f8b00

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/electron-forge/sign-windows.cjs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
const child_process = require("child_process");
2+
const fs = require("fs");
23

34
module.exports = function (filePath) {
45
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
56

7+
const stats = fs.lstatSync(filePath);
8+
console.log(filePath, stats);
9+
610
if (!WINDOWS_SIGN_EXECUTABLE) {
711
console.warn("[Sign] Skip signing due to missing environment variable.");
812
return;
913
}
1014

1115
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
1216
console.log(`[Sign] ${command}`);
13-
child_process.execSync(command);
17+
18+
const output = child_process.execSync(command);
19+
console.log(`[Sign] ${output}`);
1420
}

0 commit comments

Comments
 (0)