PavelVanecek / gulp-crx

Pack Chrome Extension in the pipeline.
31 stars 3 forks source link

[Error: Error: It is not public key] #5

Closed nitinsurana closed 8 years ago

nitinsurana commented 8 years ago

Commenting the privateKey line and running the task gives the following error :

[Error: Error: It is not public key]

According to the docs, privateKey is optional.

PavelVanecek commented 8 years ago

Which document says that privateKey is optional? As far as I know it is mandatory on purpose, because you don't want to generate new key pair on every build.

nitinsurana commented 8 years ago

Pack extension in chrome://extensions allows to pack without key. There it says optional. I used that to create the key and then used it in the extension :)

PavelVanecek commented 8 years ago

This package is independent on Chrome and the intent is to automate the process so you do not have to click around in GUI every time you want to deploy. It also works on systems where Chrome is not installed at all. The key can be generated by one-time Chrome packaging like you did, or ssh-keygen, or other means, and I think it can stay that way.