- Make sure you have node and npm installed 1.2 Install visual studio community edition
- npm install --global --production windows-build-tools --save-dev // This will take some time. Run it once
- npm install
- Install typescript globally to have tsc cli available and run npm run compile
- npm run rebuild // Run it each time new module w/native dependencies is installed
- npm start
- To build an exe npm run exe and look into new folder
- When you want to build an exe and have new dependencies for your electron app add them to the package.json inside dist/package.json . It's needed for electron exe builder to know what dependencies to install. It can't look into root directory package.json, because of some unwanted developer dependencies.
if you use usb as an adapter :
- On Linux, you'll need
libudev
to build libusb. - On Ubuntu/Debian:
sudo apt-get install build-essential libudev-dev
. - On Windows, Use Zadig to install the WinUSB driver for your USB device
Otherwise you will get LIBUSB_ERROR_NOT_SUPPORTED when attempting to open devices.