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

No API to generate ASAR from in memory assets resources. #344

Open
ChipZhang opened this issue Dec 22, 2024 · 0 comments
Open

No API to generate ASAR from in memory assets resources. #344

ChipZhang opened this issue Dec 22, 2024 · 0 comments

Comments

@ChipZhang
Copy link

ChipZhang commented Dec 22, 2024

I have a project, which has a script to deal with ASAR format. In this proejct, I have generated compiled files suck as main.js, preload.js, ..., as well as the package.json, etc. Those files contents are in memory. I need to generate the ASAR archive based on those files and then send the archive to other prorgrams.

Currently, I have to create a tmp dir, write the assets files to the tmp dir, then use @electron/asar to package the ASAR archive and read this ASAR file. And finally delete all those stuff. This is very ugly and annoying.

As the official low level library to deal with ASAR format, you should provide APIs to pack/unpack/list ASAR purely in memory.

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

1 participant