File tree Expand file tree Collapse file tree 7 files changed +49
-0
lines changed Expand file tree Collapse file tree 7 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ 9�R9�^�❆b�Y�8�������f>�Ԧ�*�������i���a�G�YK]=��K���7���i6�a����Ϟ
Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ advancedrestclient.pfx
34
34
arc-mac-certs.p12
35
35
certs.tar
36
36
web_modules
37
+ .env
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 62
62
"chai" : " ^4.2.0" ,
63
63
"cors" : " ^2.8.5" ,
64
64
"cross-env" : " ^6.0.3" ,
65
+ "dotenv" : " ^8.2.0" ,
65
66
"electron" : " ^8.0.1" ,
66
67
"electron-builder" : " ^22.2.0" ,
67
68
"electron-mocha" : " ^8.2.1" ,
69
+ "electron-notarize" : " ^0.2.1" ,
68
70
"electron-windows-store" : " ^2.1.0" ,
69
71
"eslint-config-google" : " ^0.14.0" ,
70
72
"esm" : " ^3.2.25" ,
116
118
"detectUpdateChannel" : true ,
117
119
"npmRebuild" : true ,
118
120
"buildDependenciesFromSource" : false ,
121
+ "afterSign" : " tasks/notarize.js" ,
119
122
"files" : [
120
123
" app.html" ,
121
124
" app.js" ,
132
135
"mac" : {
133
136
"category" : " public.app-category.developer-tools" ,
134
137
"icon" : " build/icon.icns" ,
138
+ "hardenedRuntime" : true ,
139
+ "gatekeeperAssess" : false ,
140
+ "entitlements" : " build/entitlements.mac.plist" ,
141
+ "entitlementsInherit" : " build/entitlements.mac.plist" ,
135
142
"target" : [
136
143
{
137
144
"target" : " dmg" ,
148
155
]
149
156
},
150
157
"dmg" : {
158
+ "sign" : false ,
151
159
"contents" : [
152
160
{
153
161
"x" : 110 ,
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ echo "Copying certificate files to main directory..."
11
11
cp certs/advancedrestclient.pfx .
12
12
cp certs/arc-mac-certs.p12 .
13
13
14
+ echo " Decrypting .env file..."
15
+ openssl aes-256-cbc -K $encrypted_cb8606543db7_key -iv $encrypted_cb8606543db7_iv -in .env.enc -out .env -d
16
+
14
17
export CSC_NAME=" Pawel Psztyc"
15
18
export WIN_CSC_LINK=" advancedrestclient.pfx"
16
19
export CSC_LINK=" arc-mac-certs.p12"
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 : 'com.mulesoft.arc' ,
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