node-notifier
node-notifier copied to clipboard
Icon does not appear when packaged with PKG
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