-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: add initial support for single executable applications #45038
src: add initial support for single executable applications #45038
Commits on Feb 17, 2023
-
src: add initial support for single executable applications
Compile a JavaScript file into a single executable application: ```console $ echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js $ cp $(command -v node) hello $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ --macho-segment-name NODE_JS $ ./hello world Hello, world! ``` Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6559b90 - Browse repository at this point
Copy the full SHA 6559b90View commit details -
test: fix
'node': No such file or directory
error on CI`node` does not exist on some of the CI systems. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 444ca79 - Browse repository at this point
Copy the full SHA 444ca79View commit details -
test: fix
Cannot find module '../common'
error on Jenkins CIThis happened because we set NODE_TEST_DIR=/Users/iojs/node-tmp on Jenkins CI. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a30e3fc - Browse repository at this point
Copy the full SHA a30e3fcView commit details -
test: skip test on failing platforms
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5caad76 - Browse repository at this point
Copy the full SHA 5caad76View commit details -
test: make sure that double backslashes in Windows paths aren't removed
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1c5968d - Browse repository at this point
Copy the full SHA 1c5968dView commit details -
src: move argv replacement to another function
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 290d69f - Browse repository at this point
Copy the full SHA 290d69fView commit details -
doc: fix info about using notes on ELF
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for da1b134 - Browse repository at this point
Copy the full SHA da1b134View commit details -
test: test code signing on Windows
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f08ca63 - Browse repository at this point
Copy the full SHA f08ca63View commit details -
lib,test: emit experimental warning
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for afc5d75 - Browse repository at this point
Copy the full SHA afc5d75View commit details -
fixup! src: move argv replacement to another function
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for da74406 - Browse repository at this point
Copy the full SHA da74406View commit details -
test: skip on debug builds on Linux
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 412d592 - Browse repository at this point
Copy the full SHA 412d592View commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 10b0fcd - Browse repository at this point
Copy the full SHA 10b0fcdView commit details -
test: skip on --without-ssl and --shared-openssl
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3addc19 - Browse repository at this point
Copy the full SHA 3addc19View commit details -
test: skip on test-ibm-rhel8-s390x-1
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 232ece5 - Browse repository at this point
Copy the full SHA 232ece5View commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f24e37c - Browse repository at this point
Copy the full SHA f24e37cView commit details -
test: skip when cross-compiling
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8126bb3 - Browse repository at this point
Copy the full SHA 8126bb3View commit details -
src: speed up case where no resource is present
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3c5c2cd - Browse repository at this point
Copy the full SHA 3c5c2cdView commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b47b68d - Browse repository at this point
Copy the full SHA b47b68dView commit details -
test: do not skip on asan builds
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2fe91c6 - Browse repository at this point
Copy the full SHA 2fe91c6View commit details -
src,doc,test: remove :0 from sentinel fuse string
Imports nodejs/postject@6da6e04. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e0a9af3 - Browse repository at this point
Copy the full SHA e0a9af3View commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 665e5f8 - Browse repository at this point
Copy the full SHA 665e5f8View commit details -
src: change segment name from
__POSTJECT
toNODE_JS
on macOSSigned-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fe6d488 - Browse repository at this point
Copy the full SHA fe6d488View commit details -
test: only run test on Ubuntu for Linux
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8c5ba96 - Browse repository at this point
Copy the full SHA 8c5ba96View commit details -
test: skip on non-x64 Linux archictectures
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2855679 - Browse repository at this point
Copy the full SHA 2855679View commit details -
test: add back ubuntu check for linux
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9daeaf0 - Browse repository at this point
Copy the full SHA 9daeaf0View commit details -
src: call IsSingleExecutable() before FindSingleExecutableCode()
This also serves as a workaround for nodejs/postject#70. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bf4e519 - Browse repository at this point
Copy the full SHA bf4e519View commit details -
lib: expose require without fs access
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a4ac355 - Browse repository at this point
Copy the full SHA a4ac355View commit details -
src: wrap macho_segment_name assignment into a pre-processor for macOS
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 13dd503 - Browse repository at this point
Copy the full SHA 13dd503View commit details -
test: detect Ubuntu by parsing '/etc/os-release'
`os.version()` might contain the `Ubuntu` substring. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ea4a139 - Browse repository at this point
Copy the full SHA ea4a139View commit details -
test: set utf8 encoding while reading
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5664222 - Browse repository at this point
Copy the full SHA 5664222View commit details -
fixup! test: detect Ubuntu by parsing '/etc/os-release'
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3a42a29 - Browse repository at this point
Copy the full SHA 3a42a29View commit details -
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0eb3dee - Browse repository at this point
Copy the full SHA 0eb3deeView commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 925775c - Browse repository at this point
Copy the full SHA 925775cView commit details -
doc: use "
node
binary" instead of just "binary"Refs: https://github.com/nodejs/node/pull/45038/files#r1099874091 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e841b26 - Browse repository at this point
Copy the full SHA e841b26View commit details -
doc: add note about linux support
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aca1db7 - Browse repository at this point
Copy the full SHA aca1db7View commit details -
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e51708d - Browse repository at this point
Copy the full SHA e51708dView commit details -
src: move all SEA code to per_process::sea in node_sea.cc
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2ad8e30 - Browse repository at this point
Copy the full SHA 2ad8e30View commit details -
src: add TODO for non-ASCII character inputs
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2c6bb38 - Browse repository at this point
Copy the full SHA 2c6bb38View commit details -
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eceb1f7 - Browse repository at this point
Copy the full SHA eceb1f7View commit details -
src: add a TODO to reuse LoadEnvironment
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 732b4e0 - Browse repository at this point
Copy the full SHA 732b4e0View commit details -
src: use UnionBytes insteda of extending from ExternalOneByteStringSi…
…ngleExecutableCode Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a1b2643 - Browse repository at this point
Copy the full SHA a1b2643View commit details -
src: avoid storing sea statics globally
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b62393b - Browse repository at this point
Copy the full SHA b62393bView commit details -
doc: move the second para above the first one
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4d118cf - Browse repository at this point
Copy the full SHA 4d118cfView commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b040491 - Browse repository at this point
Copy the full SHA b040491View commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b4ab7f0 - Browse repository at this point
Copy the full SHA b4ab7f0View commit details -
build: add TODO comment to node.gyp
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 17a019d - Browse repository at this point
Copy the full SHA 17a019dView commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ec052a1 - Browse repository at this point
Copy the full SHA ec052a1View commit details -
test: skip asan build only on linux
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c3c1ace - Browse repository at this point
Copy the full SHA c3c1aceView commit details -
test: move sea script to test/fixtures
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2aee17f - Browse repository at this point
Copy the full SHA 2aee17fView commit details -
test: use execFileSync instead of execSync
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d711de1 - Browse repository at this point
Copy the full SHA d711de1View commit details -
Update test/parallel/test-single-executable-application.js
Co-authored-by: Anna Henningsen <github@addaleax.net>
Configuration menu - View commit details
-
Copy full SHA for e8819fb - Browse repository at this point
Copy the full SHA e8819fbView commit details -
Apply suggestions from code review
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5c7bdfd - Browse repository at this point
Copy the full SHA 5c7bdfdView commit details -
src: remove per_process nesting for the sea namespace
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 44930d7 - Browse repository at this point
Copy the full SHA 44930d7View commit details -
fixup! Apply suggestions from code review
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1747349 - Browse repository at this point
Copy the full SHA 1747349View commit details -
doc: move technical details below
Refs: https://github.com/nodejs/node/pull/45038/files#r1102129105 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 308418e - Browse repository at this point
Copy the full SHA 308418eView commit details -
src: fix bug from UnionBytes going out of scope
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for daa8f4d - Browse repository at this point
Copy the full SHA daa8f4dView commit details -
src: add TODO for using 1 byte strings for ASCII-only sources
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 132bfcd - Browse repository at this point
Copy the full SHA 132bfcdView commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a0117da - Browse repository at this point
Copy the full SHA a0117daView commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dfa4272 - Browse repository at this point
Copy the full SHA dfa4272View commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aef7e26 - Browse repository at this point
Copy the full SHA aef7e26View commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d63ebf1 - Browse repository at this point
Copy the full SHA d63ebf1View commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6f6b7c0 - Browse repository at this point
Copy the full SHA 6f6b7c0View commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 04842d0 - Browse repository at this point
Copy the full SHA 04842d0View commit details -
fixup! Update doc/api/single-executable-applications.md
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aaa4b1b - Browse repository at this point
Copy the full SHA aaa4b1bView commit details -
Update doc/api/single-executable-applications.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0ad4016 - Browse repository at this point
Copy the full SHA 0ad4016View commit details -
doc: add explanation to clarify the steps
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7ebf905 - Browse repository at this point
Copy the full SHA 7ebf905View commit details -
build: use postect-api.h from deps
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eecf141 - Browse repository at this point
Copy the full SHA eecf141View commit details -
Apply suggestions from code review
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8201ef9 - Browse repository at this point
Copy the full SHA 8201ef9View commit details -
fixup! Apply suggestions from code review
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c276f2e - Browse repository at this point
Copy the full SHA c276f2eView commit details -
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7fff038 - Browse repository at this point
Copy the full SHA 7fff038View commit details -
test: use fixtures helper for postject CLI path
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 824945b - Browse repository at this point
Copy the full SHA 824945bView commit details -
src: explain POSTJECT_SENTINEL_FUSE macro
Refs: nodejs#45038 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b4a22ba - Browse repository at this point
Copy the full SHA b4a22baView commit details -
test: skip on --with-intl=system-icu
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e454d1b - Browse repository at this point
Copy the full SHA e454d1bView commit details