diff options
Diffstat (limited to 'build-helpers')
-rw-r--r-- | build-helpers/default.entitlements.mac.inherit.plist (renamed from build-helpers/default.entitlements.mas.inherit.plist) | 0 | ||||
-rw-r--r-- | build-helpers/default.entitlements.mac.plist | 16 | ||||
-rw-r--r-- | build-helpers/default.entitlements.mas.plist | 8 | ||||
-rw-r--r-- | build-helpers/notarize.js | 18 |
4 files changed, 34 insertions, 8 deletions
diff --git a/build-helpers/default.entitlements.mas.inherit.plist b/build-helpers/default.entitlements.mac.inherit.plist index d8dc69e80..d8dc69e80 100644 --- a/build-helpers/default.entitlements.mas.inherit.plist +++ b/build-helpers/default.entitlements.mac.inherit.plist | |||
diff --git a/build-helpers/default.entitlements.mac.plist b/build-helpers/default.entitlements.mac.plist new file mode 100644 index 000000000..bd6f69ba7 --- /dev/null +++ b/build-helpers/default.entitlements.mac.plist | |||
@@ -0,0 +1,16 @@ | |||
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.app-sandbox</key> | ||
6 | <true/> | ||
7 | <key>com.apple.security.automation.apple-events</key> | ||
8 | <true/> | ||
9 | <key>com.apple.security.network.client</key> | ||
10 | <true/> | ||
11 | <key>com.apple.security.device.camera</key> | ||
12 | <true/> | ||
13 | <key>com.apple.security.device.audio-input</key> | ||
14 | <true/> | ||
15 | </dict> | ||
16 | </plist> | ||
diff --git a/build-helpers/default.entitlements.mas.plist b/build-helpers/default.entitlements.mas.plist deleted file mode 100644 index 8e31f755a..000000000 --- a/build-helpers/default.entitlements.mas.plist +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
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.app-sandbox</key> | ||
6 | <true/> | ||
7 | </dict> | ||
8 | </plist> | ||
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js new file mode 100644 index 000000000..d799a5624 --- /dev/null +++ b/build-helpers/notarize.js | |||
@@ -0,0 +1,18 @@ | |||
1 | const { notarize } = require('electron-notarize'); | ||
2 | |||
3 | exports.default = async function notarizing(context) { | ||
4 | const { electronPlatformName, appOutDir } = context; | ||
5 | const isTagBuild = process.env.TRAVIS_TAG; | ||
6 | if (electronPlatformName !== 'darwin' || !isTagBuild) { | ||
7 | return; | ||
8 | } | ||
9 | |||
10 | const appName = context.packager.appInfo.productFilename; | ||
11 | |||
12 | return await notarize({ | ||
13 | appBundleId: 'com.kytwb.ferdi', | ||
14 | appPath: `${appOutDir}/${appName}.app`, | ||
15 | appleId: process.env.APPLEID, | ||
16 | appleIdPassword: process.env.APPLEID_PASSWORD, | ||
17 | }); | ||
18 | }; | ||