This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 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' }}
Original file line number Diff line number Diff line change 11const child_process = require ( "child_process" ) ;
22const fs = require ( "fs" ) ;
3+ const { default : path } = require ( "path" ) ;
34
45module . 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
You can’t perform that action at this time.
0 commit comments