You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure that separating pack and sign is really needed. Without signing, pack becomes basically just a ZIP command, and there are already other modules for that.
looks quite nice, it would require keeping everything in memory. I thought the goal was to stream data without caching it.
AFAIK, there is no way to target specific position earlier in stream while piping. CRX header is at the beginning of a file, but to create header data, one has to know all the ZIP data to be written after the header.
In my version of CRX3 module there is a crx3stream but it works like a file write stream, i.e, not possible to pipe it to a next stream, because it "jumps over" header position, writes incoming ZIP stream while generating it's hash, after which it generates header data and writes it at the beginning of the file. So it does not have to keep whole ZIP in memory, but it does not allow to pipe CRX stream elsewhere (i mean, without reopening the file and reading from it later).
API
crx(files, options)
file selection constructorpack().then(archive)
sign(archive).then(crx)
getManifest(appId)
Under the hood we need to have:
generateAppId(publicKey).then(appId)
generateSignature(archive).then(signature)
Are dropped:
writeFile
load
options.rootDirectory
,options.path
andoptions.src
Options
ignore
(defaults to['*.pem', '.git', '*.crx']
)publicKey
privateKey
(optional, to use#sign()
only)autoupdate
codebase
prodversionmin
The text was updated successfully, but these errors were encountered: