File tree Expand file tree Collapse file tree 4 files changed +68
-105
lines changed Expand file tree Collapse file tree 4 files changed +68
-105
lines changed Original file line number Diff line number Diff line change 4646 node-version : ' 20'
4747 - name : Prepare for app signing and notarization
4848 env :
49- MAC_CERT_PASSWORD : ${{ secrets.mac_cert_password }}
50- if : ${{ env.MAC_CERT_PASSWORD }}
49+ MAC_CERT : ${{ secrets.mac_cert }}
50+ if : ${{ env.MAC_CERT }}
5151 run : |
5252 echo "CSC_LINK=${{ secrets.mac_cert }}" >> $GITHUB_ENV
5353 echo "CSC_KEY_PASSWORD=${{ secrets.mac_cert_password }}" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 1- const { notarize } = require ( 'electron- notarize' ) ;
1+ const { notarize } = require ( '@ electron/ notarize' ) ;
22const process = require ( 'process' ) ;
3- const pkgJson = require ( './package.json' ) ;
43
54exports . default = async function notarizing ( context ) {
65 const { electronPlatformName, appOutDir } = context ;
@@ -16,8 +15,6 @@ exports.default = async function notarizing(context) {
1615 console . log ( `Notarizing ${ appPath } with user & password` ) ;
1716
1817 return await notarize ( {
19- tool : 'notarytool' ,
20- appBundleId : pkgJson . build . appId ,
2118 appPath,
2219 appleId : process . env . APPLE_ID ,
2320 appleIdPassword : process . env . APPLE_ID_PASSWORD ,
@@ -27,8 +24,6 @@ exports.default = async function notarizing(context) {
2724 console . log ( `Notarizing ${ appPath } with API key` ) ;
2825
2926 return await notarize ( {
30- tool : 'notarytool' ,
31- appBundleId : pkgJson . build . appId ,
3227 appPath,
3328 appleApiKey : process . env . API_KEY_FILE ,
3429 appleApiKeyId : process . env . API_KEY_ID ,
Original file line number Diff line number Diff line change 173173 "@babel/preset-env" : " ^7.16.11" ,
174174 "@babel/preset-flow" : " ^7.16.7" ,
175175 "@babel/preset-react" : " ^7.16.7" ,
176+ "@electron/notarize" : " 2.4.0" ,
176177 "@hapi/bourne" : " ^3.0.0" ,
177178 "@jitsi/js-utils" : " 2.0.5" ,
178179 "@svgr/webpack" : " ^6.2.1" ,
185186 "electron-context-menu" : " ^2.5.0" ,
186187 "electron-is-dev" : " ^1.2.0" ,
187188 "electron-log" : " ^4.3.2" ,
188- "electron-notarize" : " 1.1.1" ,
189189 "electron-react-devtools" : " 0.5.3" ,
190190 "electron-updater" : " 5.0.5" ,
191191 "electron-window-state" : " ^5.0.3" ,
You can’t perform that action at this time.
0 commit comments