Skip to content

Commit 64f0ab6

Browse files
authored
Merge pull request #1 from LISTENAI/ci
merge pr to make ci available
2 parents 52ff678 + 915777b commit 64f0ab6

File tree

5 files changed

+80
-25
lines changed

5 files changed

+80
-25
lines changed

.github/workflows/publish-beta.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish-beta
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '16.x'
15+
- name: NPM config
16+
run: |
17+
npm config set //registry-lpm.listenai.com/:_password ${{ secrets.LPM_ZHUOBIN_TOKEN }}
18+
npm config set //registry-lpm.listenai.com/:username zbzhao
19+
npm config set //registry-lpm.listenai.com/:email [email protected]
20+
npm config set //registry-lpm.listenai.com/:always-auth true
21+
- run: npm install
22+
- run: npm run prepack
23+
# - run: npm publish --tag=beta --registry=https://registry-lpm.listenai.com
24+
- uses: JS-DevTools/npm-publish@v1
25+
with:
26+
token: ${{ secrets.NPM_TOKEN }}
27+
tag: 'beta'

.github/workflows/publish-latest.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish-latest
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '16.x'
15+
- name: NPM config
16+
run: |
17+
npm config set //registry-lpm.listenai.com/:_password ${{ secrets.LPM_ZHUOBIN_TOKEN }}
18+
npm config set //registry-lpm.listenai.com/:username zbzhao
19+
npm config set //registry-lpm.listenai.com/:email [email protected]
20+
npm config set //registry-lpm.listenai.com/:always-auth true
21+
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
22+
- uses: battila7/get-version-action@v2
23+
id: get_version
24+
- run: npm dist-tag add @listenai/uiohook-napi@${{ steps.get_version.outputs.version-without-v }} latest
25+
- run: npm dist-tag add @listenai/uiohook-napi@${{ steps.get_version.outputs.version-without-v }} latest --registry=https://registry-lpm.listenai.com
26+
27+
28+

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "uiohook-napi",
2+
"name": "@listenai/uiohook-napi",
33
"version": "1.5.4",
44
"author": {
55
"name": "Alexander Drozdov"
66
},
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/SnosMe/uiohook-napi.git"
9+
"url": "https://github.com/LISTENAI/uiohook-napi.git"
1010
},
1111
"license": "MIT",
1212
"keywords": [
@@ -38,12 +38,12 @@
3838
],
3939
"devDependencies": {
4040
"@types/node": "18.x.x",
41-
"prebuildify": "5.x.x",
41+
"prebuildify": "^6.0.1",
4242
"ts-node": "10.x.x",
4343
"typescript": "4.x.x"
4444
},
4545
"dependencies": {
46-
"node-gyp-build": "4.x.x"
46+
"node-gyp-build": "^4.8.2"
4747
},
4848
"prebuild": {
4949
"test": "dist/prebuild-test-noop.js"

src/libuiohook.patch

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
diff --git a/src/darwin/input_hook.c b/src/darwin/input_hook.c
2+
index e6cd6ce..04d040b 100644
3+
--- a/src/darwin/input_hook.c
4+
+++ b/src/darwin/input_hook.c
5+
@@ -958,7 +958,7 @@ CGEventRef hook_event_proc(CGEventTapProxy tap_proxy, CGEventType type, CGEventR
6+
unset_modifier_mask(MOUSE_BUTTON5);
7+
}
8+
9+
- process_button_pressed(timestamp, event_ref, button);
10+
+ process_button_released(timestamp, event_ref, button);
11+
}
12+
break;
13+
114
diff --git a/src/windows/input_helper.c b/src/windows/input_helper.c
215
index e690021..0d383e0 100644
316
--- a/src/windows/input_helper.c

yarn.lock

+8-21
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1:
111111
dependencies:
112112
once "^1.4.0"
113113

114-
execspawn@^1.0.1:
115-
version "1.0.1"
116-
resolved "https://registry.yarnpkg.com/execspawn/-/execspawn-1.0.1.tgz#8286f9dde7cecde7905fbdc04e24f368f23f8da6"
117-
integrity sha512-s2k06Jy9i8CUkYe0+DxRlvtkZoOkwwfhB+Xxo5HGUtrISVW2m98jO2tr67DGRFxZwkjQqloA3v/tNtjhBRBieg==
118-
dependencies:
119-
util-extend "^1.0.1"
120-
121114
fs-constants@^1.0.0:
122115
version "1.0.0"
123116
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
@@ -162,10 +155,10 @@ node-abi@^3.3.0:
162155
dependencies:
163156
semver "^7.3.5"
164157

165-
node-gyp-build@4.x.x:
166-
version "4.5.0"
167-
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.5.0.tgz#7a64eefa0b21112f89f58379da128ac177f20e40"
168-
integrity sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==
158+
node-gyp-build@^4.8.2:
159+
version "4.8.2"
160+
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.2.tgz#4f802b71c1ab2ca16af830e6c1ea7dd1ad9496fa"
161+
integrity sha512-IRUxE4BVsHWXkV/SFOut4qTlagw2aM8T5/vnTsmrHJvVoKueJHRc/JaFND7QDDc61kLYUJ6qlZM3sqTSyx2dTw==
169162

170163
npm-run-path@^3.1.0:
171164
version "3.1.0"
@@ -186,12 +179,11 @@ path-key@^3.0.0:
186179
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
187180
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
188181

189-
prebuildify@5.x.x:
190-
version "5.0.1"
191-
resolved "https://registry.yarnpkg.com/prebuildify/-/prebuildify-5.0.1.tgz#e10bb6e4986c18909185704c806cc06976c30478"
192-
integrity sha512-vXpKLfIEsDCqMJWVIoSrUUBJQIuAk9uHAkLiGJuTdXdqKSJ10sHmWeuNCDkIoRFTV1BDGYMghHVmDFP8NfkA2Q==
182+
prebuildify@^6.0.1:
183+
version "6.0.1"
184+
resolved "https://registry.yarnpkg.com/prebuildify/-/prebuildify-6.0.1.tgz#655746f91fc95b68610615898678536dd303cd03"
185+
integrity sha512-8Y2oOOateom/s8dNBsGIcnm6AxPmLH4/nanQzL5lQMU+sC0CMhzARZHizwr36pUPLdvBnOkCNQzxg4djuFSgIw==
193186
dependencies:
194-
execspawn "^1.0.1"
195187
minimist "^1.2.5"
196188
mkdirp-classic "^0.5.3"
197189
node-abi "^3.3.0"
@@ -285,11 +277,6 @@ util-deprecate@^1.0.1:
285277
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
286278
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
287279

288-
util-extend@^1.0.1:
289-
version "1.0.3"
290-
resolved "https://registry.yarnpkg.com/util-extend/-/util-extend-1.0.3.tgz#a7c216d267545169637b3b6edc6ca9119e2ff93f"
291-
integrity sha512-mLs5zAK+ctllYBj+iAQvlDCwoxU/WDOUaJkcFudeiAX6OajC6BKXJUa9a+tbtkC11dz2Ufb7h0lyvIOVn4LADA==
292-
293280
v8-compile-cache-lib@^3.0.1:
294281
version "3.0.1"
295282
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"

0 commit comments

Comments
 (0)