File tree Expand file tree Collapse file tree 5 files changed +59
-4
lines changed
src-capacitor/ios/App/App Expand file tree Collapse file tree 5 files changed +59
-4
lines changed Original file line number Diff line number Diff line change 5050 "compression" : " 1.7.4" ,
5151 "cookie" : " 0.5.0" ,
5252 "crypto-js" : " ^4.1.1" ,
53+ "dotenv" : " 16.0.3" ,
5354 "dotenv-expand" : " 9.0.0" ,
5455 "downloadjs" : " ^1.4.7" ,
5556 "electron-log" : " ^4.4.8" ,
9091 "zod" : " 3.19.1"
9192 },
9293 "devDependencies" : {
94+ "@electron/notarize" : " ^2.1.0" ,
9395 "@intlify/vite-plugin-vue-i18n" : " 3.4.0" ,
9496 "@quasar/app-vite" : " ^1.4.3" ,
9597 "@types/argon2-browser" : " ^1.18.1" ,
105107 "@types/zxcvbn" : " 4.4.1" ,
106108 "@vue/devtools" : " 6.4.5" ,
107109 "autoprefixer" : " 10.4.13" ,
108- "dotenv" : " 16.0.3" ,
109110 "electron" : " 25.2.0" ,
110111 "electron-builder" : " ^24.4.0" ,
111112 "electron-packager" : " ^17.1.1" ,
Original file line number Diff line number Diff line change @@ -327,13 +327,25 @@ module.exports = configure(function (ctx) {
327327
328328 mac : {
329329 target : 'dmg' ,
330+
331+ hardenedRuntime : true ,
332+ gatekeeperAssess : false ,
333+ entitlements : 'src-capacitor/ios/App/App/entitlements.mac.plist' ,
334+ entitlementsInherit :
335+ 'src-capacitor/ios/App/App/entitlements.mac.plist' ,
330336 } ,
331337 linux : {
332338 target : 'AppImage' ,
333339 } ,
334340 win : {
335341 target : 'nsis' ,
336342 } ,
343+
344+ dmg : {
345+ sign : false ,
346+ } ,
347+
348+ afterSign : 'src-electron/notarize.js' ,
337349 } ,
338350 } ,
339351
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+ <plist version =" 1.0" >
4+ <dict >
5+ <key >com.apple.security.cs.allow-jit </key >
6+ <true />
7+ </dict >
8+ </plist >
Original file line number Diff line number Diff line change 1+ require ( 'dotenv' ) . config ( ) ;
2+ const { notarize } = require ( '@electron/notarize' ) ;
3+
4+ exports . default = async function notarizing ( context ) {
5+ const { electronPlatformName, appOutDir } = context ;
6+ if ( electronPlatformName !== 'darwin' ) {
7+ return ;
8+ }
9+
10+ const appName = context . packager . appInfo . productFilename ;
11+
12+ return await notarize ( {
13+ appBundleId : 'app.deepnotes' ,
14+ appPath : `${ appOutDir } /${ appName } .app` ,
15+ appleId : process . env . APPLE_ID ,
16+ appleIdPassword : process . env . APPLE_ID_PASSWORD ,
17+ teamId : process . env . TEAM_ID ,
18+ } ) ;
19+ } ;
You can’t perform that action at this time.
0 commit comments