警告不能将文件%1包括在可执行文件中-PKG错误
我正在尝试建立一个通知解决方案来更新我,以防
我使用nodejs构建的任何新作业,但想与我的朋友共享
此链接: https://github.com/frodoe7/upworknotifier
对于任何人来说,拥有一个开发环境来运行此工具,这真是令人讨厌,
我想要 我的问题,这就是我的问题为了将其捆绑并通过主要平台(Macos-linux-windows)使其可执行,
我试图将PKG用作最受欢迎的解决方案,现在存在
这是运行pkg index.js后的输出
未指定目标。假设: Node16-Linux-X64,Node16-Macos-X64,Node16-Win-X64
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/node-notifier/vendor/notifu/notifu.exe %2:可启用途径/notifier/notifu.exe
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/node-notifier/vendor/notifu/notifu64.exe %2:可启用路径/notifier/notifu64.exe
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/node-notifier/vendor/terminal-notifier.app/cottents/macos/terminal-notifier %2:可启用路径/通知器/终端通用器
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/node-notifier/vendor/snoretoast/snoretoast-x64.exe %2:可启用途径/notifier/snoretoast-x64.exe
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/node-notifier/vendor/snoretoast/snoretoast-x86.exe %2:可启用路径/notifier/snoretoast-x86.exe
警告不能将文件%1包含在可执行文件中。 该文件必须以为%2的可执行文件分配。 %1:node_modules/open/xdg-open %2:可启用路径/XDG-OPEN
外观,PKG和节点函数软件包之间存在问题 https://github.com/mikaelbr/node-notifier
一个类似的问题 https://github.com/mikaelbr/node-notifier/node-notifier/siss/ 220#issuecomment-841725820
有人有任何想法如何解决这个问题吗?
I'm trying to build a notifications solution to update me in case any new jobs posted through Upwork
I built it with NodeJS but would like to share it with my friends
here's the link: https://github.com/frodoe7/upworkNotifier
It's just annoying for anyone to have a development environment to run this tool, and that's my problem
I'd like to bundle it and make it executable through the major platforms (MacOS-Linux-Windows)
I tried to use pkg as the most popular solution exist now
Here's the output after running pkg index.js
Targets not specified. Assuming:
node16-linux-x64, node16-macos-x64, node16-win-x64
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/node-notifier/vendor/notifu/notifu.exe
%2: path-to-executable/notifier/notifu.exe
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/node-notifier/vendor/notifu/notifu64.exe
%2: path-to-executable/notifier/notifu64.exe
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier
%2: path-to-executable/notifier/terminal-notifier
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/node-notifier/vendor/snoreToast/snoretoast-x64.exe
%2: path-to-executable/notifier/snoretoast-x64.exe
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/node-notifier/vendor/snoreToast/snoretoast-x86.exe
%2: path-to-executable/notifier/snoretoast-x86.exe
Warning Cannot include file %1 into executable.
The file must be distributed with executable as %2.
%1: node_modules/open/xdg-open
%2: path-to-executable/xdg-open
Looks there's an issue between pkg and node-notifier package
https://github.com/mikaelbr/node-notifier
A similar issue
https://github.com/mikaelbr/node-notifier/issues/220#issuecomment-841725820
Anyone have any ideas how to fix that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论