Skip to content

Commit

Permalink
Added support for maxBuffer in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oncle Tom committed Jan 24, 2012
1 parent 7c2be3c commit a245af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/crx.js
Expand Up @@ -18,6 +18,7 @@ program
.version("0.2.8")
.option("-f, --file [file]", "input/output <file> instead of stdin/stdout")
.option("-p, --private-key <file>", "relative path to private key [key.pem]")
.option("-b, --max-buffer <total>", "max amount of memory allowed to generate the crx, in byte")
// coming soon
// .option("-x, --xml", "output autoupdate xml instead of extension ")

Expand Down Expand Up @@ -70,7 +71,9 @@ function pack(dir) {
? resolve(cwd, program.privateKey)
: join(input, "key.pem")

, crx = new ChromeExtension
, crx = new ChromeExtension({
maxBuffer: program.maxBuffer
})

fs.readFile(key, function(err, data) {
if (err) keygen(dir, pack.bind(null, dir))
Expand Down

0 comments on commit a245af9

Please sign in to comment.