Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ia32 #75

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 3 additions & 37 deletions .github/workflows/prebuild-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,15 @@ on:
- main

jobs:
prebuild-linux:
name: Prebuild Binaries for Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup Dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y -qq
sudo apt-get install -y g++-multilib gcc-multilib libcups2-dev libcups2-dev:i386 libc6-dev-i386 linux-libc-dev linux-libc-dev:i386
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: actions/checkout@v1
- run: npm i
- name: Prebuild
run: |
npm run apply-patches
npm run prebuild -- --strip --all --arch ia32 -u ${{ secrets.PREBUILD_TOKEN }}
npm run prebuild -- --strip --all --arch x64 -u ${{ secrets.PREBUILD_TOKEN }}
prebuild-macos:
name: Prebuild Binaries for macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: actions/checkout@v1
- run: npm i
- name: Prebuild
run: |
npm run apply-patches
npm run prebuild -- --strip --all --arch x64 -u ${{ secrets.PREBUILD_TOKEN }}
prebuild-windows:
name: Prebuild Binaries for Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v4
- run: npm i
- name: Prebuild
run: |
Expand Down
40 changes: 3 additions & 37 deletions .github/workflows/prebuild-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,15 @@ on:
pull_request:

jobs:
prebuild-linux:
name: Prebuild Binaries for Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup Dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y -qq
sudo apt-get install -y g++-multilib gcc-multilib libcups2-dev libcups2-dev:i386 libc6-dev-i386 linux-libc-dev linux-libc-dev:i386
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: actions/checkout@v1
- run: npm i
- name: Prebuild
run: |
npm run apply-patches
npm run prebuild -- --strip --all --arch ia32
npm run prebuild -- --strip --all --arch x64
prebuild-macos:
name: Prebuild Binaries for macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: actions/checkout@v1
- run: npm i
- name: Prebuild
run: |
npm run apply-patches
npm run prebuild -- --strip --all --arch x64
prebuild-windows:
name: Prebuild Binaries for Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v4
- run: npm i
- name: Prebuild
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- uses: actions/checkout@v4
- run: npm ci --ignore-scripts
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
75 changes: 0 additions & 75 deletions Gruntfile.js

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
Node Printer Prebuild
============
Native bind printers on POSIX and Windows OS from Node.js, electron and node-webkit.
Native bind printers on Windows OS from Node.js, electron and node-webkit.

[![npm version](https://badge.fury.io/js/@thiagoelg%2Fnode-printer.svg)](https://www.npmjs.com/package/@thiagoelg/node-printer) [![Prebuild Binaries and Publish](https://github.com/thiagoelg/node-printer/actions/workflows/prebuild-main.yml/badge.svg)](https://github.com/thiagoelg/node-printer/actions/workflows/prebuild-main.yml)
[![npm version](https://badge.fury.io/js/@lastapp%2Fnode-printer.svg)](https://www.npmjs.com/package/@lastapp/node-printer) [![Prebuild Binaries and Publish](https://github.com/last-tech/node-printer/actions/workflows/prebuild-main.yml/badge.svg)](https://github.com/last-tech/node-printer/actions/workflows/prebuild-main.yml)

> It just works with Node 12 because of @thiagoelg in his [PR](https://github.com/tojocky/node-printer/pull/261)

> Prebuild and CI integration courtesy of @ekoeryanto in his [FORK](https://github.com/ekoeryanto/node-printer)

If you have a problem, ask question to [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tojocky/node-printer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) or find/create a new [Github issue](https://github.com/thiagoelg/node-printer/issues)

___
### **Below is the original README**
___
Expand Down Expand Up @@ -39,12 +37,12 @@ I was involved in a project where I need to print from Node.JS. This is the reas

### How to install:
```
npm install @thiagoelg/node-printer
npm install @lastapp/node-printer
```

### How to use:

See [examples](https://github.com/thiagoelg/node-printer/tree/main/examples)
See [examples](https://github.com/last-tech/node-printer/tree/main/examples)

### Author(s):

Expand Down
Loading