File tree 3 files changed +34
-0
lines changed 3 files changed +34
-0
lines changed 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-unsigned-executable-memory </key >
6
+ <true />
7
+ </dict >
8
+ </plist >
Original file line number Diff line number Diff line change 134
134
"build" : {
135
135
"productName" : " Reactotron" ,
136
136
"appId" : " com.reactotron.app" ,
137
+ "afterSign" : " scripts/notarize.js" ,
137
138
"files" : [
138
139
" src/dist/" ,
139
140
" src/app.html" ,
142
143
" package.json"
143
144
],
144
145
"dmg" : {
146
+ "sign" : false ,
145
147
"contents" : [
146
148
{
147
149
"x" : 130 ,
155
157
}
156
158
]
157
159
},
160
+ "mac" : {
161
+ "hardenedRuntime" : true ,
162
+ "gatekeeperAssess" : false ,
163
+ "entitlements" : " entitlements.mac.plist" ,
164
+ "entitlementsInherit" : " entitlements.mac.plist"
165
+ },
158
166
"win" : {
159
167
"icon" : " ./icon.png" ,
160
168
"target" : [
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' || ! process . env . APPLEID ) {
7
+ return ;
8
+ }
9
+
10
+ const appName = context . packager . appInfo . productFilename ;
11
+
12
+ return await notarize ( {
13
+ appBundleId : 'com.yourcompany.yourAppId' ,
14
+ appPath : `${ appOutDir } /${ appName } .app` ,
15
+ appleId : process . env . APPLEID ,
16
+ appleIdPassword : process . env . APPLEIDPASS ,
17
+ } ) ;
18
+ } ;
You can’t perform that action at this time.
0 commit comments