node-codesign

Sign your apps on OSX.

Usage no npm install needed!

<script type="module">
  import nodeCodesign from 'https://cdn.skypack.dev/node-codesign';
</script>

README

node codesign

Sign anything for MacOS.

Installation

# For use in npm scripts
npm i node-codesign --save-dev

# For use from cli
npm i node-codesign -g

Usage

To obtain a signing identity, join the Mac Developer Program. More info is available in the Mac Developer documentation.

Usage: node-codesign <path/to/file> <Identity>

Sign your electron apps on OSX.

Usage:
  node-codesign ./FooBar-darwin-x64/FooBar.app "Developer ID Application: Lucas Hrabovsky"

Args:
  <appPath>            Path to your file.
  <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.

API

var codesign = require('node-codesign')
codesign(opts, function done (err, filePaths) { })

codesign(opts, callback)

opts

Required appPath - String The file.

identity - String SHA-1 signature or query (e.g. Developer ID Application <your_name>) of a Code Signing Identity obtained from Apple.

callback

err - Error Contains errors if any.

filePaths Array Path successfully signed and verified.

License

Apache 2.0