chore(forge): gather files to be signed for analysis

This commit is contained in:
Elian Doran 2025-04-30 11:29:20 +03:00
parent 614958f16c
commit 57c6dd2fee
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View File

@ -87,6 +87,13 @@ jobs:
tag_name: nightly
name: Nightly Build
- name: Publish artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: signing ${{ matrix.os.name }} ${{ matrix.arch }}
path: apps/desktop/electron-forge/sign
- name: Publish artifacts
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'pull_request' }}

View File

@ -12,7 +12,14 @@ module.exports = function (sourcePath) {
return;
}
const outputDir = path.join(__dirname, "sign");
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}
try {
const destPath = path.join(outputDir, path.basename(sourcePath));
fs.copyFileSync(sourcePath, destPath);
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${sourcePath}"`;
console.log(`[Sign] ${command}`);