Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write without extracting #166

Closed
thiagorova opened this issue Feb 26, 2019 · 2 comments
Closed

Write without extracting #166

thiagorova opened this issue Feb 26, 2019 · 2 comments

Comments

@thiagorova
Copy link

Hi!
first of all, pretty cool package!
So... I'm building an electron-based that, among other things, manages a series of user generated files. I'd like to package and encrypt my user's files to enable a permission-based online file sharing (using services like Dropbox and Google Drive). Asar suits my needs very well (no compression and extraction-less file access).

I was just wondering if you guys were planning (I can try looking into it if you give me the go) and adding a file-write method to asar, so that I can update a single file in the package without having to do the "extract-write-package" process each time. something like:

asar.writeFile(src, file, data-buffer)
thanks!

@malept
Copy link
Member

malept commented Feb 26, 2019

There isn't a plan to add a method like that, as far as I'm aware. Given what I know about the format, the entire file would have to be rewritten anyway, right? Which would end up being "extract-write-package" to some extent.

@thiagorova
Copy link
Author

hummm... not really worth implementing then. a pity, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants