File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
1313 strategy :
1414 matrix :
1515 include :
16- # - os: ubuntu-latest
17- # arch: [arm64, amd64]
16+ - os : ubuntu-latest
17+ arch : [arm64, amd64]
1818 - os : macos-latest
1919 arch : [arm64, amd64]
20- # - os: windows-latest
21- # arch: [arm64, amd64]
20+ - os : windows-latest
21+ arch : [arm64, amd64]
2222
2323 steps :
2424 - name : Checkout Code
6767 - name : Build Release Files
6868 run : npm run build
6969 env :
70+ DEBUG : " electron-notarize:*"
7071 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7172 APPLE_ID : ${{ secrets.APPLE_ID }}
7273 APPLE_ID_PASSWORD : ${{ secrets.APPLE_ID_PASSWORD }}
Original file line number Diff line number Diff line change 1212 strategy :
1313 matrix :
1414 include :
15- # - os: ubuntu-latest
16- # arch: [arm64, amd64]
15+ - os : ubuntu-latest
16+ arch : [arm64, amd64]
1717 - os : macos-latest
1818 arch : [arm64, amd64]
1919 - os : windows-latest
6666 - name : Build Release Files
6767 run : npm run build
6868 env :
69+ DEBUG : " electron-notarize:*"
6970 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7071 APPLE_ID : ${{ secrets.APPLE_ID }}
7172 APPLE_ID_PASSWORD : ${{ secrets.APPLE_ID_PASSWORD }}
Original file line number Diff line number Diff line change 126126 "role" : "Editor"
127127 }
128128 ] ,
129+ "electronLanguages" : [
130+ "zh-CN" ,
131+ "en-US"
132+ ] ,
129133 "type" : "development" ,
130134 "notarize" : false ,
131135 "darkModeSupport" : false ,
181185 }
182186 ]
183187 } ,
184- "afterSign" : "./scripts/notarize.cjs" ,
188+ // "afterSign": "./scripts/notarize.cjs",
185189}
Original file line number Diff line number Diff line change @@ -31,5 +31,13 @@ exports.default = async function notarizing(context) {
3131 verbose : true ,
3232 }
3333 console . log ( ` • Notarizing` , `appPath:${ appPath } notarizeOption:${ JSON . stringify ( notarizeOption ) } ` ) ;
34- return await notarize ( notarizeOption ) ;
34+ try {
35+ const result = await notarize ( notarizeOption ) ;
36+ console . log ( " • Notarization successful!" ) ;
37+ return result ;
38+ } catch ( error ) {
39+ console . error ( " • Notarization failed:" , error . message ) ;
40+ console . error ( " • Stack trace:" , error . stack ) ;
41+ }
42+
3543} ;
You can’t perform that action at this time.
0 commit comments