Browse Source

try disbaling hardened runtime for mas

pull/2554/head
Kyle Spearrin 6 years ago
parent
commit
aba4c24256
  1. 3
      package.json
  2. 4
      resources/entitlements.mas.plist
  3. 4
      scripts/notarize.js

3
package.json

@ -143,7 +143,8 @@ @@ -143,7 +143,8 @@
},
"mas": {
"entitlements": "resources/entitlements.mas.plist",
"entitlementsInherit": "resources/entitlements.mas.inherit.plist"
"entitlementsInherit": "resources/entitlements.mas.inherit.plist",
"hardenedRuntime": false
},
"nsisWeb": {
"oneClick": false,

4
resources/entitlements.mas.plist

@ -8,9 +8,5 @@ @@ -8,9 +8,5 @@
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

4
scripts/notarize.js

@ -8,9 +8,11 @@ exports.default = async function notarizing(context) { @@ -8,9 +8,11 @@ exports.default = async function notarizing(context) {
}
const appleId = process.env.APPLEID;
const appName = context.packager.appInfo.productFilename;
const appPath = `${appOutDir}/${appName}.app`;
console.log('Notarizing ' + appPath);
return await notarize({
appBundleId: 'com.bitwarden.desktop',
appPath: `${appOutDir}/${appName}.app`,
appPath: appPath,
appleId: appleId,
appleIdPassword: `@keychain:AC_PASSWORD`,
});

Loading…
Cancel
Save