mikaelbr / node-notifier

A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
MIT License
5.72k stars 323 forks source link

pkg does not work with this > Warning Cannot include file %1 into executable. log.js:55 The file must be distributed with executable as %2. log.js:40 %1: node_modules/node-notifier/vendor/notifu/notifu.exe log.js:40 %2: path-to-executable/notifier/notifu.exe #435

Open jmw11x opened 1 year ago

jmw11x commented 1 year ago

Please let me know where I'm going wrong, hopefully I am making a mistake. pkg . and pkg index.js get same result. Set up through ec2 instance on aws (reason for ssh)

From previous solutions I saw cp to path to executable. What is that path? Why is mine not working?

Screen Shot 2023-06-06 at 5 03 58 PM Screen Shot 2023-06-06 at 5 04 09 PM

Seen other issues and tried solutions with no success.

package.json

{ "name": "notifiy", "version": "1.0.0", "description": "", "main": "index.js", "bin": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "babel": "^6.23.0", "node-notifier": "^10.0.1", "path": "^0.12.7", "ssh2": "^1.13.0" } }

Running locally node index.js works... after accepting permissions.