Skip to content

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

@ChipZhang

Description

@ChipZhang

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions