-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7cb3c4
commit be3cffa
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.cs.allow-jit</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-dyld-environment-variables</key> | ||
<true/> | ||
<key>com.apple.security.cs.disable-library-validation</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const { notarize } = require('electron-notarize') | ||
const path = require('path') | ||
|
||
exports.default = async function notarizing (context) { | ||
if (context.electronPlatformName !== 'darwin' || process.env.CSC_IDENTITY_AUTO_DISCOVERY === 'false') { | ||
console.log('Skipping notarization') | ||
return | ||
} | ||
console.log('Notarizing...') | ||
|
||
const appBundleId = context.packager.appInfo.info._configuration.appId | ||
const appName = context.packager.appInfo.productFilename | ||
const appPath = path.normalize(path.join(context.appOutDir, `${appName}.app`)) | ||
const appleId = process.env.APPLE_ID | ||
const appleIdPassword = process.env.APPLE_ID_PASSWORD | ||
if (!appleId) { | ||
console.warn('Not notarizing: Missing APPLE_ID environment variable') | ||
return | ||
} | ||
if (!appleIdPassword) { | ||
console.warn('Not notarizing: Missing APPLE_ID_PASSWORD environment variable') | ||
return | ||
} | ||
return notarize({ | ||
appBundleId, | ||
appPath, | ||
appleId, | ||
appleIdPassword | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters