A simple, lightweight provider for ZXPSignCmd - the tool used to sign Adobe extensions
npm install zxp-provider
zxp-provider has a simple interface for calling ZXPSignCmd. Most users will want to call zxp-provider with no arguments. This will return the latest version of ZXPSignCmd, for your current running operating system.
const zxpProvider = require('zxp-provider');
const zxp = zxpProvider(); // returns the lastest version for the current operation system
If you would like to manually choose the version of ZXPSignCmd, an interface is provided for that. Please see CEP-Resources if you're unsure what versions are available. If you would like, zxp-provider also contains an Array of supported versions.
const chosenVersion = zxpProvider.supportedVersions[0]; // select the oldest version of ZXPSignCmd
const zxp = zxpProvider({ version: chosenVersion });
If you would like to manually select the os, you can do that as well. zxp-provider exposes an object containing all of the supported versions.
const win64 = zxpProvider.supportedPlatforms.win64; // manually select windows 64 bit
const zxp = zxpProvider({ os: win64 })