serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
https://serialport.io
MIT License
5.8k stars 1.01k forks source link

Serialport with pkg package for 32(x86) bit windows #2818

Open dhwaj1902 opened 4 months ago

dhwaj1902 commented 4 months ago

SerialPort Version

10.0.0

Node Version

18.17.0

Electron Version

-

Platform

Windows x64

Architecture

x64

Hardware or chipset of serialport

No response

What steps will reproduce the bug?

-

What happens?

I tried to make the exe in nodejs using the package pkg version:4.3.8, but getting the error

Warning Cannot include addon %1 into executable. The addon must be distributed with executable as %2. D:***\node_modules\@serialport\bindings\build\Release\bindings.node path-to-executable/bindings.node

Firstly, I tried from pkg version 5.8.1 for x64 bit, works fine for me, but I want to make the exe for x86 windows, so downgraded the version to 4.3.8, now I am getting this error for x64 bit as well.

What should have happened?

should work for x86 as well for version 4.3.8

Additional information

No response