单个可执行应用创建过程
¥Single executable application creation process
旨在创建单个可执行 Node.js 应用的工具必须将使用 --experimental-sea-config" 准备的 blob 的内容注入到:
¥A tool aiming to create a single executable Node.js application must
inject the contents of the blob prepared with --experimental-sea-config"
into:
-
如果
node二进制文件是 PE 文件,则名为NODE_SEA_BLOB的资源¥a resource named
NODE_SEA_BLOBif thenodebinary is a PE file -
如果
node二进制文件是 Mach-O 文件,则NODE_SEA段中名为NODE_SEA_BLOB的部分¥a section named
NODE_SEA_BLOBin theNODE_SEAsegment if thenodebinary is a Mach-O file -
如果
node二进制文件是 ELF 文件,则名为NODE_SEA_BLOB的注释¥a note named
NODE_SEA_BLOBif thenodebinary is an ELF file
在二进制文件中搜索 NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2:0 fuse 字符串并将最后一个字符翻转为 1 以指示已注入资源。
¥Search the binary for the
NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2:0 fuse string and flip the
last character to 1 to indicate that a resource has been injected.