Skip to content

Commit 0abfaf0

Browse files
committed
initial commit
0 parents  commit 0abfaf0

File tree

4 files changed

+124
-0
lines changed

4 files changed

+124
-0
lines changed

.github/workflows/ci.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
ci:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-20.04, macos-11, windows-2019]
14+
arch: [x86_64]
15+
include:
16+
- os: windows-2019
17+
arch: i686
18+
runs-on: ${{ matrix.os }}
19+
name: Build ${{ matrix.os }} (${{matrix.arch}})
20+
permissions:
21+
contents: write
22+
steps:
23+
- name: Checkout Code
24+
uses: actions/checkout@v2
25+
with:
26+
submodules: true
27+
28+
- name: Setup Node
29+
uses: actions/setup-node@v2
30+
with:
31+
registry-url: "https://registry.npmjs.org"
32+
node-version: 14
33+
34+
- name: Setup Linux Dependencies
35+
if: startsWith(matrix.os, "ubuntu")
36+
run: |
37+
sudo apt-get upgrade
38+
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
39+
40+
- name: Patch and Install Packages
41+
run: |
42+
cd iohook
43+
git apply ../iohook.patch
44+
npm ci --ignore-scripts
45+
46+
- name: Build
47+
run: |
48+
cd iohook
49+
npm run build --all ----upload=false --msvs_version=2019
50+
env:
51+
ARCH: ${{ matrix.arch }}
52+
53+
- uses: actions/upload-artifact@v3
54+
with:
55+
name: builds
56+
path: iohook/prebuilds/
57+
58+
release:
59+
runs-on: ubuntu-20.04
60+
name: Release
61+
needs:
62+
- ci
63+
permissions:
64+
contents: write
65+
steps:
66+
- uses: actions/download-artifact@v3
67+
with:
68+
name: builds
69+
path: builds
70+
71+
- uses: ncipollo/release-action@v1
72+
with:
73+
token: ${{ secrets.GITHUB_TOKEN }}
74+
tag: "ci"
75+
name: "CI"
76+
body: "CI Build"
77+
commit: "main"
78+
allowUpdates: true
79+
artifacts: "builds/*"
80+
draft: false
81+
prerelease: true

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "iohook"]
2+
path = iohook
3+
url = https://github.com/wilix-team/iohook

iohook

Submodule iohook added at 2297744

iohook.patch

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
diff --git a/package.json b/package.json
2+
index f0f423b..fe6bb6c 100644
3+
--- a/package.json
4+
+++ b/package.json
5+
@@ -144,6 +144,21 @@
6+
"14.0.0",
7+
"89"
8+
],
9+
+ [
10+
+ "electron",
11+
+ "15.0.0",
12+
+ "98"
13+
+ ],
14+
+ [
15+
+ "electron",
16+
+ "16.0.0",
17+
+ "99"
18+
+ ],
19+
+ [
20+
+ "electron",
21+
+ "17.0.0",
22+
+ "101"
23+
+ ],
24+
[
25+
"node",
26+
"10.0.0",
27+
@@ -178,7 +193,11 @@
28+
"node",
29+
"16.0.0",
30+
"93"
31+
+ ],
32+
+ [
33+
+ "node",
34+
+ "17.1.0",
35+
+ "102"
36+
]
37+
]
38+
}
39+
-

0 commit comments

Comments
 (0)