Skip to content

Commit

Permalink
Merge pull request #25 from unelmacoin/UP-39
Browse files Browse the repository at this point in the history
Auto update feature added
  • Loading branch information
unellma authored Jul 3, 2023
2 parents 56a36a6 + 45783c2 commit 6a4d23a
Show file tree
Hide file tree
Showing 5 changed files with 12,371 additions and 9,225 deletions.
14 changes: 14 additions & 0 deletions build/entitlements.mac.plist
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>
30 changes: 30 additions & 0 deletions build/notarize.js
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,
});
};
Loading

0 comments on commit 6a4d23a

Please sign in to comment.