Git Product home page Git Product logo

zxp-provider's Introduction

zxp-provider

A simple, lightweight provider for ZXPSignCmd - the tool used to sign Adobe extensions

Dependencies Build Status Build status Coverage Status MIT licensed

Installation

npm install zxp-provider

Usage

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 })

Notes

CEP-Resources

zxp-provider's People

Contributors

alebianco-doxee avatar codearoni avatar cwrau avatar renyu-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zxp-provider's Issues

Binary doesn't contain all of the commands / Permissions

Running ./ZXPSignCmd on mac only lists information on the -verify command. It gives no information on the -sign command, for example. Other versions of the binary do contain the -sign command. I haven't tested this on Windows.

Additionally, the mac binary does not have execute permissions.

Downloads $ rm ZXPSignCmd 
Downloads $ ./ZXPSignCmd
-bash: ./ZXPSignCmd: Permission denied
Downloads $ chmod u+x ZXPSignCmd 
Downloads $ ./ZXPSignCmd
Usage:
    ZXPSignCmd -verify <zxp>|<extensionRootDirectory> [options]
    options:
        -certInfo - will print out information about certificates (including timestamp and certificate revocation information)
        -skipOnlineRevocationChecks - will skip online checks for certificate revocation (certificate revocation checks only happen with -certInfo flag set)
        -addCerts <certificate1> <certificate2>... - will verify certificate chain and assess whether or not DER encoded certificates passed in are included


Downloads $ 

better example

Can you give a better example of how to use this?

What is equivalent to: ZXPSignCmd -sign build my.zxp cert.p12 password?

Also, does it support ZXPSignCmd -selfSignedCert?

OSX Binary doesn't have execution permission

The ZXPSignCmd binary for OSX is not executable.

$ curl -L https://github.com/codearoni/zxp-provider/archive/1.1.1.tar.gz | tar xv **/ZXPSignCmd -O > ZXPSignC
$ stat -f '%A %N' ZXPSignCmd
> 644 ZXPSignCmd
$ ./ZXPSignCmd
> -bash: ./ZXPSignCmd: Permission denied

Tested both the github release archive and the npm published package, same results with both.
Once changed the permissions to executable, it works as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.