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

Icon does not appear when packaged with PKG #404

Open Lucky38i opened 2 years ago

Lucky38i commented 2 years ago

I'm use a nodeJS server with this package. Now my icon works with now issues when starting the server with node, however with PKG it seems the icons fail to load when a notification is showing.

My implementation in code

notify({
      title: 'Test',
      message: notification.toPayload().message,
      sound: true,
      icon: join(__dirname, '..', '/assets/images/tail.png'),
});

package.json

"pkg": {
"assets": [
    "dist/assets/**/*"
    ]
}

File structure for pkg to pick up assets Screenshot 2022-03-23 at 17 03 06