zxp-sign
v0.1.1
Published
Command-line utility to self-sign a ZXP
Downloads
18
Readme
zxp-sign
Command-line utility to self-sign a ZXP which wraps zxp-sign-cmd. The purpose of this utility is to easily sign from GitHub Actions.
Usage
npx zxp-sign \
-i path/to/extension/ \
-o path/to/extension.zxp
Arguments
--input
or-i
- Path to directory with contents for ZXP.--output
or-i
- Path to the output zxp extension.--timestamp
or-t
- Optional, timestamp URL for signing (default:"http://timestamp.digicert.com/"
)
Environment Variables
These things can be set in CI as environment variables.
ZXP_INPUT
- Same as--input
argumentZXP_OUTPUT
- Same as--output
argumentZXP_TIMESTAMP
- Same as--timestamp
argumentZXP_CERT_COUNTRY
- (required) Country for cert (e.g., "US")ZXP_CERT_PROVINCE
- (required) Province or State for cert (e.g., "CA")ZXP_CERT_ORG
- (required) Organization nameZXP_CERT_NAME
- (required) Certificate name (e.g., the extension id)ZXP_CERT_PASSWORD
- (required) Cert passwordZXP_CERT_OUTPUT
- Optional cert output path (default:${ZXP_CERT_NAME}-cert
)