jed/crx — Issue #1: TypeError Exception thrown
Author: oncletom
Created: 2012-01-09 14:06:36+00:00
State: open

Hello,

I try to package an extension through your module but it throws error on almost all configurations I try.
In my extension directory, I have 2 things:
* `key.pem`
* `src/` in which I have all html, css and js files

When I type, following your example, `crx pack src/ -p key.pem -f`, this error is shown:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Not a string or buffer
at [object Object].generateSignature (/usr/local/lib/node_modules/crx/src/crx.js:110:10)
at [object Object]. (/usr/local/lib/node_modules/crx/src/crx.js:23:16)
at [object Object]. (/usr/local/lib/node_modules/crx/src/crx.js:122:26)
at exithandler (child_process.js:276:7)
at Array.0 (child_process.js:292:7)
at EventEmitter._tickCallback (node.js:192:40)

However, when I package using Chrome, it is successful (such as the extension install):

/path/to/Google\ Chrome --pack-extension=./src/ --pack-extension-key=./key.pem

node --version
v0.6.2

crx --version
0.2.0