Skip to content

Support Electron 15-19 and Node.js 17-18 #363

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ jobs:
- name: Setup Linux Dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get install -y software-properties-common libx11-dev libxtst-dev libxt-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libxcb-xkb-dev libxkbfile-dev libxinerama-dev
sudo apt-get update && sudo apt-get install -y software-properties-common libx11-dev libxtst-dev libxt-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libxcb-xkb-dev libxkbfile-dev libxinerama-dev

- name: Install Packages
run: npm i --ignore-scripts

# Build only if version tag is not present
- name: Build
run: npm run build -- --all --msvs_version=2019
run: npm run build -- --all --msvs_version=2022
if: startsWith(github.ref, 'refs/tags/v') != true
env:
ARCH: ${{ matrix.arch }}

# Build and publish if version tag is present
- name: Build & Publish Prebuilds
run: npm run build:ci -- --msvs_version=2019
run: npm run build:ci -- --msvs_version=2022
if: startsWith(github.ref, 'refs/tags/v')
env:
ARCH: ${{ matrix.arch }}
Expand Down
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ function build(runtime, version, abi) {
'rebuild',
'--target=' + version,
'--arch=' + arch,
'--openssl_fips=X'
];

if (/^electron/i.test(runtime)) {
args.push('--dist-url=https://atom.io/download/electron');
args.push('--dist-url=https://electronjs.org/headers');
}

if (parseInt(abi) >= 80) {
Expand Down
10 changes: 10 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ iohook currently provides prebuilt versions for the following runtimes:
- 10.X.X (ABI 82)
- 11.X.X (ABI 85)
- 12.X.X (ABI 87)
- 13.X.X (ABI 89)
- 14.X.X (ABI 89)
- 15.X.X (ABI 98)
- 16.X.X (ABI 99)
- 17.X.X (ABI 101)
- 18.X.X (ABI 103)
- 19.X.X (ABI 106)

- Node.js:
- 8.9.X (ABI 57)
Expand All @@ -29,3 +36,6 @@ iohook currently provides prebuilt versions for the following runtimes:
- 13.X.X (ABI 79)
- 14.X.X (ABI 83)
- 15.X.X (ABI 88)
- 16.X.X (ABI 93)
- 17.X.X (ABI 102)
- 18.X.X (ABI 108)
Loading