Skip to content

Commit 6f11a08

Browse files
committed
chore(ios): setup notarization
1 parent faf1854 commit 6f11a08

File tree

5 files changed

+59
-4
lines changed

5 files changed

+59
-4
lines changed

apps/client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
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",
@@ -90,6 +91,7 @@
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",
@@ -105,7 +107,6 @@
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",

apps/client/quasar.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
};

pnpm-lock.yaml

Lines changed: 18 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)