Created
November 28, 2017 17:27
-
-
Save yoannmoinet/5f9af7813449110bedeec7aaee294773 to your computer and use it in GitHub Desktop.
Sign Mac OS X app for development
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
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