Conversation
|
Review requested:
|
9ebcf1c to
b35c591
Compare
b35c591 to
e3c9f15
Compare
|
Should we have a |
|
From #50941 (comment)
One thing we need to decide: should we expose |
e3c9f15 to
cf7d0a1
Compare
|
Just a note: I really appreciate this happening. I have previously been using nexe and pkg and therefore know a lot of the pain points of trying to keep current with node. So I just want to give @joyeecheung huge thanks and kudos for moving this forward! THANKS |
| "disableExperimentalSEAWarning": true, // Default: false | ||
| "useSnapshot": false, // Default: false | ||
| "useCodeCache": true // Default: false | ||
| "useCodeCache": true, // Default: false |
There was a problem hiding this comment.
@nodejs/single-executable I recommend creating a JSON schema and distributing it through nodejs.org, to have better intellisense when this json includes "$schema" parameter. This could help with maintenance and usability.
There was a problem hiding this comment.
Do you want to open an issue in https://github.com/nodejs/single-executable/issues instead?
|
Just repeating #50960 (comment) in case you missed it: Should we have a |
|
Can this be used for native so binaries and then pass them somehow into process.dlopen? |
|
Yes that's how. Except you'll need to extract onto disk first because
dlopen requires a file.
…On Sat, 18 May 2024, 04:26 Roger Qiu, ***@***.***> wrote:
Can this be used for native so binaries and then pass them somehow into
process.dlopen?
—
Reply to this email directly, view it on GitHub
<#50960 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADM5LZKZPT3S46CQAQHFOTZC3C7BAVCNFSM6AAAAAA76SV46KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGYZDAMBXGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
What about the VFS idea? |
|
That will make it easy for most files, but native addons will still need to
be put on disk, because the dlopen os call simply requires it. VFS would
work if it's on yhe OS level (think kernel vfs). But that's outside the
scope of what node/sea could do.
…On Sat, 18 May 2024, 11:27 Roger Qiu, ***@***.***> wrote:
What about the VFS idea?
—
Reply to this email directly, view it on GitHub
<#50960 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADM5L6ZM2F7LABRUKRC65DZC4UJ5AVCNFSM6AAAAAA76SV46KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYG43DMMBRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
VFS would need to built on top of proper fs hooks which is related to SEA, but also there are many other use cases for such hooks, one previous proposal is nodejs/single-executable#43 (I think there are others, but can't find the links). |
src: print string content better in BlobDeserializer
When it's a short string, print it inline, otherwise print it
from a separate line. Also add the missing line breaks finally.
sea: support embedding assets
With this patch:
Users can now include assets by adding a key-path dictionary
to the configuration as the
assetsfield. At build time, Node.jswould read the assets from the specified paths and bundle them into
the preparation blob. In the generated executable, users can retrieve
the assets using the
sea.getAsset()andsea.getAssetAsBlob()API.{ "main": "/path/to/bundled/script.js", "output": "/path/to/write/the/generated/blob.blob", "assets": { "a.jpg": "/path/to/a.jpg", "b.txt": "/path/to/b.txt" } }The single-executable application can access the assets as follows:
Drive-by: update the documentation to include a section dedicated
to the injected main script and refer to it as "injected main
script" instead of "injected module" because it's a script, not
a module.
Refs: nodejs/single-executable#68