单个可执行应用创建过程


【Single executable application creation process】

一个旨在创建单一可执行 Node.js 应用的工具必须将 JavaScript 文件的内容注入到:

【A tool aiming to create a single executable Node.js application must inject the contents of a JavaScript file into:】

  • 如果 node 可执行文件是 体育 文件,则名为 NODE_JS_CODE 的资源
  • 如果 node 二进制文件是 Mach-O 文件,则在 NODE_JS 段中名为 NODE_JS_CODE 的部分
  • 如果 node 可执行文件是 精灵 文件,则名为 NODE_JS_CODE 的注意

在二进制文件中搜索 NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2:0 保险丝 字符串,并将最后一个字符改为 1,以表示资源已被注入。

【Search the binary for the NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2:0 fuse string and flip the last character to 1 to indicate that a resource has been injected.】