prebuildify:创建和打包本机模块的预构建

时间:2021-04-28 00:51:27
【文件属性】:
文件名称:prebuildify:创建和打包本机模块的预构建
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-28 00:51:27
nodejs prebuild native-modules node-gyp-build JavaScript 预建 创建和打包本机模块的预构建 npm install -g prebuildify 使用prebuildify ,所有预构建的二进制文件都将发送到发布到npm的软件包中,这意味着无需像那样单独进行下载。 具有讽刺意味的是,这种方法捆绑在一起时为每个平台下载所有预构建的二进制文件比下载单个预构建的二进制文件作为安装脚本要快。 始终使用prebuildify- 用法 笔记。 选项,环境变量和预构建名称在prebuildify@3已更改。 请参阅下面的文档。 您还需要升级node-gyp-build 。 首先转到您的本机模块,并进行一堆预构建。 # go to your native module cd your-native-module # build for all electron/node binary versions and strip out symbols prebu
【文件预览】:
prebuildify-master
----.gitignore(99B)
----bin.js(675B)
----README.md(8KB)
----.github()
--------workflows()
----test()
--------package()
--------mock-gyp()
--------api.js(2KB)
----LICENSE(1KB)
----package.json(954B)
----index.js(9KB)

网友评论