Native bind printers on POSIX and Windows OS from Node.js, electron and node-webkit.
Native bind printers for electron on Windows OS, support both
win32_x64andwin32_ia32Optimized node-pre-gyp configuration and project directory to make rebuild simple before build electron application
this module is specially for electron application on Windows OS, compatible for
x64andia32if you develop on a
ia32machine, just skip this chapter(maybe the whole readme)if you need this module, suggest to publish it to
NPMor some other private registryafter rebuild work, suggest set
npmRebuildasfalsein electron build configuration
node-pre-gyppythonwindows-build-tools- something necessary about build electron application
npm i @namespace/node-printerelectron-builder is needed
npx electron-builder install-app-depsneed to change dir into
node_modules/@namespace/node-printerfirst
node-pre-gyp configure --target=`${electron_version}` --arch=x64 --dist-url=https://electronjs.org/headers --module_name=node_printer
node-pre-gyp build package --runtime=electron --target=`${electron_version}` --target_arch=x64 --build-from-sourcestill in the dir
node_modules/@namespace/node-printer
node-pre-gyp rebuild --target_arch=ia32
node-pre-gyp build package --runtime=electron --target=`${electron_version}` --target_arch=ia32 --build-from-source- If you have a problem, find/create a new Github issue
