Skip to content

Instantly share code, notes, and snippets.

@yoannmoinet
Created November 28, 2017 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoannmoinet/5f9af7813449110bedeec7aaee294773 to your computer and use it in GitHub Desktop.
Save yoannmoinet/5f9af7813449110bedeec7aaee294773 to your computer and use it in GitHub Desktop.
Sign Mac OS X app for development
import { sign } from 'electron-osx-sign';
import { PARENT_PLIST_PATH, CHILD_PLIST_PATH, DEV_PROVISIONING_PROFILE } from './config';
const signApp = (appPath, pkgPath) => {
const resourcesPath = path.join(appPath, './Contents/Resources/');
const signOpts = {
app: appPath,
platform: 'mas',
binaries: [ /* Here goes the list of binaries you have in your app, like the widevine plugin. */ ],
entitlements: PARENT_PLIST_PATH,
'entitlements-inherit': CHILD_PLIST_PATH,
'provisioning-profile': DEV_PROVISIONING_PROFILE,
identity: 'Mac Developer: Yoann MOINET (REDACTED)',
type: 'development',
};
sign(signOpts);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment