Skip to content

Commit 5d982ea

Browse files
committed
chore(forge): gather files to be signed for analysis
1 parent b2f8b00 commit 5d982ea

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/nightly.yml

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ jobs:
7777
tag_name: nightly
7878
name: Nightly Build
7979

80+
- name: Publish artifacts
81+
uses: actions/upload-artifact@v4
82+
if: always()
83+
with:
84+
name: signing ${{ matrix.os.name }} ${{ matrix.arch }}
85+
path: build/bin/electron-forge/sign
86+
8087
- name: Publish artifacts
8188
uses: actions/upload-artifact@v4
8289
if: ${{ github.event_name == 'pull_request' }}

bin/electron-forge/sign-windows.cjs

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const child_process = require("child_process");
22
const fs = require("fs");
3+
const { default: path } = require("path");
34

45
module.exports = function (filePath) {
56
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
@@ -12,6 +13,14 @@ module.exports = function (filePath) {
1213
return;
1314
}
1415

16+
const outputDir = path.join(__dirname, "sign");
17+
console.log(path.resolve("Output dir is ", outputDir));
18+
if (!fs.existsSync(outputDir)) {
19+
fs.mkdirSync(outputDir);
20+
}
21+
22+
fs.copyFileSync(sourcePath, destPath);
23+
1524
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
1625
console.log(`[Sign] ${command}`);
1726

0 commit comments

Comments
 (0)