clopos.electron

1.2.295 • Public • Published

First time

  1. Make sure you have node and npm installed 1.2 Install visual studio community edition
  2. npm install --global --production windows-build-tools --save-dev // This will take some time. Run it once
  3. npm install
  4. Install typescript globally to have tsc cli available and run npm run compile
  5. npm run rebuild // Run it each time new module w/native dependencies is installed
  6. npm start

Building exe

  1. To build an exe npm run exe and look into new folder
  2. 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.

Printing for USB Devices

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.

/clopos.electron/

    Package Sidebar

    Install

    npm i clopos.electron

    Weekly Downloads

    25

    Version

    1.2.295

    License

    MIT

    Unpacked Size

    187 kB

    Total Files

    50

    Last publish

    Collaborators

    • clopos