File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 77
77
tag_name : nightly
78
78
name : Nightly Build
79
79
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
+
80
87
- name : Publish artifacts
81
88
uses : actions/upload-artifact@v4
82
89
if : ${{ github.event_name == 'pull_request' }}
Original file line number Diff line number Diff line change 1
1
const child_process = require ( "child_process" ) ;
2
2
const fs = require ( "fs" ) ;
3
+ const { default : path } = require ( "path" ) ;
3
4
4
5
module . exports = function ( filePath ) {
5
6
const { WINDOWS_SIGN_EXECUTABLE } = process . env ;
@@ -12,6 +13,14 @@ module.exports = function (filePath) {
12
13
return ;
13
14
}
14
15
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
+
15
24
const command = `${ WINDOWS_SIGN_EXECUTABLE } --executable "${ filePath } "` ;
16
25
console . log ( `[Sign] ${ command } ` ) ;
17
26
You can’t perform that action at this time.
0 commit comments