Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,12 @@ Uncaught exceptions are logged with [electron-log](https://github.com/megahertz/

## Environment variables

The settings for each environment can be found in Config.ts
The settings for each environment can be found in Config.ts

## Notarize Mac versions

- Get the list of your account providers using `xcrun altool --list-providers -u <email> -p <app specitic password>`.
- Set the Environment variables
- process.env.APPLEID // your apple id
- process.env.APPLEIDPASS // your app specitic password
- process.env.ASCPROVIDER // the team id from the first step
18 changes: 18 additions & 0 deletions notarize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require('dotenv').config();
const { notarize } = require('electron-notarize');
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
}

const appName = context.packager.appInfo.productFilename;

return await notarize({
appBundleId: 'bet.decent.DbetWalletMac',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
ascProvider: process.env.ASCPROVIDER
});
};
Loading