-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from unelmacoin/UP-39
Auto update feature added
- Loading branch information
Showing
5 changed files
with
12,371 additions
and
9,225 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, | ||
}); | ||
}; |
Oops, something went wrong.