Sign your electron apps on OSX.
# For use in npm scripts
npm i electron-installer-codesign --save-dev
# For use from cli
npm i electron-installer-codesign -g
To obtain a signing identity, join the Mac Developer Program. More info is available in the Mac Developer documentation.
Usage: electron-installer-codesign <path/to/.app> <Identity>
Sign your electron apps on OSX.
Usage:
electron-installer-codesign ./FooBar-darwin-x64/FooBar.app "Developer ID Application: Lucas Hrabovsky"
Args:
<appPath> Path to your `.app` directory.
<identity> Keychain query of a Code Signing Identity obtained from Apple.
Options:
--debug Enable debug messages.
--overwrite Overwrite any existing DMG.
-h --help Show this screen.
--version Show version.
var codesign = require('electron-installer-codesign')
codesign(opts, function done (err, filePaths) { })
Required
appPath
- String
The .app
directory generated by electron-packager.
identity
- String
SHA-1 signature or query (e.g. Developer ID Application <your_name>
) of a Code Signing Identity obtained from Apple.
err
- Error
Contains errors if any.
filePaths
Array
Paths successfully signed and verified.
Apache 2.0