Skip to content

Commit 11f21e3

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

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-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: 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

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ module.exports = function (filePath) {
1212
return;
1313
}
1414

15+
const outputDir = path.join(__dirname, "sign");
16+
if (!fs.existsSync(outputDir)) {
17+
fs.mkdirSync(outputDir);
18+
}
19+
20+
fs.copyFileSync(sourcePath, destPath);
21+
1522
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
1623
console.log(`[Sign] ${command}`);
1724

0 commit comments

Comments
 (0)