Add SEA support to pkg #78
robertsLando
started this conversation in
Ideas
Replies: 1 comment 10 replies
-
In order to avoid hacking and patching NodeJS runtime you have to implement Virtual File System first. I don't think there is a support for it by NodeJS as of now, but only because there is no reference implementation either. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I'm a maintainer of pkg, I would like to know if someone could help/guide me adding SEA support to it. I have read docs about SEA but I'm not sure about how it could work together with pkg.
Actually what pkg does is (more info here):
fs
module in order to serve file from the snapshot file systemIn order to handle native addons, it simply copy them into a temporary folder on startup and the patched fs will return the temporary path when them are required in code.
I think this already covers some limitation of SEA as actually it's missing all the things related to the snapshot file system and it's actually working with a single file. Anyway the hardest part of pkg is to maintain the patched nodejs executables, that's the reason why the project is almost unmaintained right now and all maintainers give up at some point.
If we could find a way to use the features of SEA in pkg without the need of creating custom patched nodejs executable it would be awesome!
Beta Was this translation helpful? Give feedback.
All reactions