Code Monkey home page Code Monkey logo

electron-printer's Introduction

electron-printer

node-printer fork to be used with electron. It's a fork from node-printer which binary are released on github. It's a temporary solution until binary package will be available for node 5.1.x and windows / linux platforms for node-printer on electron runtime. Please refer to https://github.com/tojocky/node-printer on how to use these APIs.

Prerequisite

Install the node version used by electron (currently is 5.1.1 for electron 0.36.7). A github valid NODE_PRE_GYP_GITHUB_TOKEN must be set as env variable.

Release & Build

Remember to change the binary host with the correct version (see https://github.com/bchr02/node-pre-gyp-github). After the release, build the binaries for each OS.

Linux build

On Ubuntu 15.10, install:

sudo apt-get install libudev-dev libusb-1.0-0-dev g++-multilib libudev-dev:i386 libcups2-dev

And then run npm run release-linux (x64) or npm run release-linux-ia32 (ia32) to publish the binary build

Windows build

Use a Windows 7 on x64. Install Visual Studio (2013 is OK on Windows 7) and Python 2.7.x Always specify the VisualStudio version using --msvs_version=xxxx, foor instance npm i --msvs_version=2013

Release using npm run release-win --msvs_version=2013 (x64) or npm run release-win-ia32 --msvs_version=2013 (ia32)

OSx build

After npm i, just use npm run release-darwin (npm run release should work)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.