node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Icon does not appear when packaged with PKG

Open Lucky38i opened this issue 2 years ago • 0 comments

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

Lucky38i avatar Mar 23 '22 17:03 Lucky38i