felixhao28 / node-systray

A cross-platform systray library for nodejs.
https://www.npmjs.com/package/systray2
MIT License
32 stars 8 forks source link

ENOENT tray_windows_release.exe #2

Closed Llorx closed 4 years ago

Llorx commented 4 years ago

Just done a npm install systray2 and changed the import systray from systray to import systray from systray2 and this error happens: ENOENT tray_windows_release.exe.

felixhao28 commented 4 years ago

You need to copy the tray_windows_release.exe from node_modules\systray2\traybin\tray_windows_release.exe to <working directory>\traybin\tray_windows_release.exe. It was previously in systray <working directory>\..\traybin\tray_windows_release.exe which I found very strange.

felixhao28 commented 4 years ago

I know the problem. I forgot to change the export path in the package. Let me fix it.

felixhao28 commented 4 years ago

It should be fixed in 2.0.5.

Llorx commented 4 years ago

Yay, thank you.