Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon does not appear when packaged with PKG #404

Open
Lucky38i opened this issue Mar 23, 2022 · 0 comments
Open

Icon does not appear when packaged with PKG #404

Lucky38i opened this issue Mar 23, 2022 · 0 comments

Comments

@Lucky38i
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant