@overwolf/ow-electron 39.6.1 → 39.8.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/checksums.json +10 -10
- package/cli.js +2 -2
- package/electron.d.ts +32 -15
- package/install.js +26 -12
- package/ow-electron.d.ts +5 -5
- package/package.json +20 -7
- package/electron-api.json +0 -51111
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ We currently have these npm packages:
|
|
|
7
7
|
few features to it
|
|
8
8
|
- [@overwolf/ow-electron-builder](https://www.npmjs.com/package/@overwolf/ow-electron-builder) is a packaged based on electron-builder which
|
|
9
9
|
supports building ow-electron
|
|
10
|
-
-
|
|
10
|
+
- @overwolf/electron-is-overwolf - similar to
|
|
11
11
|
[electron-is-dev](https://www.npmjs.com/package/electron-is-dev)
|
|
12
12
|
|
|
13
13
|
There is no problem that both packages reside side-by-side with the original
|
package/checksums.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"electron-api.json": "
|
|
3
|
-
"electron.d.ts": "
|
|
4
|
-
"ow-electron-v39.
|
|
5
|
-
"ow-electron-v39.
|
|
6
|
-
"ow-electron-v39.
|
|
7
|
-
"ow-electron-v39.
|
|
8
|
-
"ow-electron-v39.
|
|
9
|
-
"ow-electron-v39.
|
|
10
|
-
"ow-electron-v39.
|
|
11
|
-
"ow-electron-v39.
|
|
2
|
+
"electron-api.json": "d3c769853e7cac1098c3e33b0f5743ad3f890cf5003e738abb27aa7e9157d944",
|
|
3
|
+
"electron.d.ts": "a332d5d3fafb45e224218d44c5c471d215dca76889956d5f36f59ec0f8716d10",
|
|
4
|
+
"ow-electron-v39.8.10-beta.1-darwin-arm64.zip": "469a72f74a0a52de3555391324d4fc6a4cef26d920208603c2502aedcc92a329",
|
|
5
|
+
"ow-electron-v39.8.10-beta.1-darwin-x64.zip": "f3e00cf49ca8779bab61917d78c2a5de630e58945753c89a1f1fe5c6a7cc5ad4",
|
|
6
|
+
"ow-electron-v39.8.10-beta.1-linux-arm64.zip": "aa90bc87e7f3452831aa4687e71d2bfb0d1c08ffef9533472383dc3d361ae758",
|
|
7
|
+
"ow-electron-v39.8.10-beta.1-linux-armv7l.zip": "6e4d0d96b5ed98b9973868b8ea6234a5511cae866f15e586be7003a753b7afcc",
|
|
8
|
+
"ow-electron-v39.8.10-beta.1-linux-x64.zip": "16b0450e045a634067303a27896ba38f98f663b5fbdf5e8d6cb181baff249fff",
|
|
9
|
+
"ow-electron-v39.8.10-beta.1-win32-arm64.zip": "bff199e35ef75181dd65db2386df20444e876b8adc604d0778099a2baa3dc0b7",
|
|
10
|
+
"ow-electron-v39.8.10-beta.1-win32-ia32.zip": "9d5957e472682389b732e611854fba8a189590fd36b04385c045df1085baad8f",
|
|
11
|
+
"ow-electron-v39.8.10-beta.1-win32-x64.zip": "2e3601b11bc2c696127cd5ce708b08b8e2d324a5cc9e3b74cac944e23e2784ac"
|
|
12
12
|
}
|
package/cli.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const electron = require('./');
|
|
4
|
-
|
|
5
3
|
const proc = require('child_process');
|
|
6
4
|
|
|
5
|
+
const electron = require('./');
|
|
6
|
+
|
|
7
7
|
const child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false });
|
|
8
8
|
child.on('close', function (code, signal) {
|
|
9
9
|
if (code === null) {
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 39.
|
|
1
|
+
// Type definitions for Electron 39.8.10
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -517,7 +517,10 @@ declare namespace Electron {
|
|
|
517
517
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
518
518
|
/**
|
|
519
519
|
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
520
|
-
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier
|
|
520
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
521
|
+
*
|
|
522
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
523
|
+
* expected.
|
|
521
524
|
*
|
|
522
525
|
* @platform darwin
|
|
523
526
|
*/
|
|
@@ -1207,7 +1210,7 @@ declare namespace Electron {
|
|
|
1207
1210
|
* indicates that the app should restore the windows that were open the last time
|
|
1208
1211
|
* the app was closed. This setting is not available on MAS builds or on macOS 13
|
|
1209
1212
|
* and up.
|
|
1210
|
-
* * `status` string _macOS_ - can be
|
|
1213
|
+
* * `status` string _macOS_ - can be `not-registered`, `enabled`,
|
|
1211
1214
|
* `requires-approval`, or `not-found`.
|
|
1212
1215
|
* * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
|
|
1213
1216
|
* at login and its run key is not deactivated. This differs from `openAtLogin` as
|
|
@@ -1219,7 +1222,7 @@ declare namespace Electron {
|
|
|
1219
1222
|
* registry entry.
|
|
1220
1223
|
* * `args` string[] _Windows_ - the command-line arguments to pass to the
|
|
1221
1224
|
* executable.
|
|
1222
|
-
* * `scope` string _Windows_ -
|
|
1225
|
+
* * `scope` string _Windows_ - can be `user` or `machine`. Indicates whether the
|
|
1223
1226
|
* registry entry is under `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
|
|
1224
1227
|
* * `enabled` boolean _Windows_ - `true` if the app registry key is startup
|
|
1225
1228
|
* approved and therefore shows as `enabled` in Task Manager and Windows settings.
|
|
@@ -2185,7 +2188,11 @@ declare namespace Electron {
|
|
|
2185
2188
|
*/
|
|
2186
2189
|
removeListener(event: 'moved', listener: () => void): this;
|
|
2187
2190
|
/**
|
|
2188
|
-
* Emitted when the native new tab button
|
|
2191
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
2192
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
2193
|
+
*
|
|
2194
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
2195
|
+
* expected.
|
|
2189
2196
|
*
|
|
2190
2197
|
* @platform darwin
|
|
2191
2198
|
*/
|
|
@@ -4400,7 +4407,11 @@ declare namespace Electron {
|
|
|
4400
4407
|
*/
|
|
4401
4408
|
removeListener(event: 'moved', listener: () => void): this;
|
|
4402
4409
|
/**
|
|
4403
|
-
* Emitted when the native new tab button
|
|
4410
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
4411
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
4412
|
+
*
|
|
4413
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
4414
|
+
* expected.
|
|
4404
4415
|
*
|
|
4405
4416
|
* @platform darwin
|
|
4406
4417
|
*/
|
|
@@ -4422,7 +4433,11 @@ declare namespace Electron {
|
|
|
4422
4433
|
*/
|
|
4423
4434
|
removeListener(event: 'new-window-for-tab', listener: () => void): this;
|
|
4424
4435
|
/**
|
|
4425
|
-
* Emitted when the native new tab button
|
|
4436
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
4437
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
4438
|
+
*
|
|
4439
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
4440
|
+
* expected.
|
|
4426
4441
|
*
|
|
4427
4442
|
* @platform darwin
|
|
4428
4443
|
*/
|
|
@@ -11589,6 +11604,8 @@ declare namespace Electron {
|
|
|
11589
11604
|
/**
|
|
11590
11605
|
* The current absolute position of the mouse pointer.
|
|
11591
11606
|
*
|
|
11607
|
+
* Not supported on Wayland (Linux).
|
|
11608
|
+
*
|
|
11592
11609
|
* > [!NOTE] The return value is a DIP point, not a screen physical point.
|
|
11593
11610
|
*/
|
|
11594
11611
|
getCursorScreenPoint(): Point;
|
|
@@ -21087,11 +21104,11 @@ declare namespace Electron {
|
|
|
21087
21104
|
*/
|
|
21088
21105
|
restoreState: boolean;
|
|
21089
21106
|
/**
|
|
21090
|
-
* can be
|
|
21107
|
+
* can be `not-registered`, `enabled`, `requires-approval`, or `not-found`.
|
|
21091
21108
|
*
|
|
21092
21109
|
* @platform darwin
|
|
21093
21110
|
*/
|
|
21094
|
-
status:
|
|
21111
|
+
status: ('not-registered' | 'enabled' | 'requires-approval' | 'not-found');
|
|
21095
21112
|
/**
|
|
21096
21113
|
* `true` if app is set to open at login and its run key is not deactivated. This
|
|
21097
21114
|
* differs from `openAtLogin` as it ignores the `args` option, this property will
|
|
@@ -21106,13 +21123,13 @@ declare namespace Electron {
|
|
|
21106
21123
|
|
|
21107
21124
|
interface LoginItemSettingsOptions {
|
|
21108
21125
|
/**
|
|
21109
|
-
* Can be
|
|
21110
|
-
*
|
|
21111
|
-
*
|
|
21126
|
+
* Can be `mainAppService`, `agentService`, `daemonService`, or `loginItemService`.
|
|
21127
|
+
* Defaults to `mainAppService`. Only available on macOS 13 and up. See
|
|
21128
|
+
* app.setLoginItemSettings for more information about each type.
|
|
21112
21129
|
*
|
|
21113
21130
|
* @platform darwin
|
|
21114
21131
|
*/
|
|
21115
|
-
type?:
|
|
21132
|
+
type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
|
|
21116
21133
|
/**
|
|
21117
21134
|
* The name of the service. Required if `type` is non-default. Only available on
|
|
21118
21135
|
* macOS 13 and up.
|
|
@@ -23473,12 +23490,12 @@ declare namespace Electron {
|
|
|
23473
23490
|
*/
|
|
23474
23491
|
args: string[];
|
|
23475
23492
|
/**
|
|
23476
|
-
*
|
|
23493
|
+
* can be `user` or `machine`. Indicates whether the registry entry is under
|
|
23477
23494
|
* `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
|
|
23478
23495
|
*
|
|
23479
23496
|
* @platform win32
|
|
23480
23497
|
*/
|
|
23481
|
-
scope:
|
|
23498
|
+
scope: ('user' | 'machine');
|
|
23482
23499
|
/**
|
|
23483
23500
|
* `true` if the app registry key is startup approved and therefore shows as
|
|
23484
23501
|
* `enabled` in Task Manager and Windows settings.
|
package/install.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const { downloadArtifact } = require('@electron/get');
|
|
4
|
+
|
|
4
5
|
const { owElectronVersion } = require('./package');
|
|
6
|
+
const extract = require('extract-zip');
|
|
5
7
|
|
|
6
8
|
const childProcess = require('child_process');
|
|
7
9
|
const fs = require('fs');
|
|
8
10
|
const os = require('os');
|
|
9
11
|
const path = require('path');
|
|
10
|
-
const extract = require('extract-zip');
|
|
11
|
-
const { downloadArtifact } = require('@electron/get');
|
|
12
12
|
|
|
13
|
+
const { version } = require('./package');
|
|
13
14
|
|
|
14
15
|
if (process.env.ELECTRON_SKIP_BINARY_DOWNLOAD) {
|
|
15
16
|
process.exit(0);
|
|
@@ -65,7 +66,7 @@ function isInstalled () {
|
|
|
65
66
|
if (fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8') !== platformPath) {
|
|
66
67
|
return false;
|
|
67
68
|
}
|
|
68
|
-
} catch
|
|
69
|
+
} catch {
|
|
69
70
|
return false;
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -76,16 +77,29 @@ function isInstalled () {
|
|
|
76
77
|
|
|
77
78
|
// unzips and makes path.txt point at the correct executable
|
|
78
79
|
function extractFile (zipPath) {
|
|
79
|
-
|
|
80
|
-
extract(zipPath, { dir: path.join(__dirname, 'dist') }, err => {
|
|
81
|
-
if (err) return reject(err);
|
|
80
|
+
const distPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist');
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
return extract(zipPath, { dir: path.join(__dirname, 'dist') }).then(() => {
|
|
83
|
+
// If the zip contains an "electron.d.ts" file,
|
|
84
|
+
// move that up
|
|
85
|
+
const srcTypeDefPath = path.join(distPath, 'electron.d.ts');
|
|
86
|
+
const targetTypeDefPath = path.join(__dirname, 'electron.d.ts');
|
|
87
|
+
const hasTypeDefinitions = fs.existsSync(srcTypeDefPath);
|
|
88
|
+
|
|
89
|
+
if (hasTypeDefinitions) {
|
|
90
|
+
fs.renameSync(srcTypeDefPath, targetTypeDefPath);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const owsrcTypeDefPath = path.join(distPath, 'ow-electron.d.ts');
|
|
94
|
+
const owtargetTypeDefPath = path.join(__dirname, 'ow-electron.d.ts');
|
|
95
|
+
const hasOwTypeDefinitions = fs.existsSync(owsrcTypeDefPath);
|
|
96
|
+
|
|
97
|
+
if (hasOwTypeDefinitions) {
|
|
98
|
+
fs.renameSync(owsrcTypeDefPath, owtargetTypeDefPath);
|
|
99
|
+
}
|
|
85
100
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
});
|
|
101
|
+
// Write a "path.txt" file.
|
|
102
|
+
return fs.promises.writeFile(path.join(__dirname, 'path.txt'), platformPath);
|
|
89
103
|
});
|
|
90
104
|
}
|
|
91
105
|
|
package/ow-electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for ow-electron 39.
|
|
1
|
+
// Type definitions for ow-electron 39.8.10
|
|
2
2
|
import { App, BrowserWindow, Event } from 'electron';
|
|
3
3
|
import { errorMonitor } from 'events';
|
|
4
4
|
|
|
@@ -353,7 +353,7 @@ declare namespace overwolf {
|
|
|
353
353
|
eventName: 'game-detected',
|
|
354
354
|
listener: (event: GepGameLaunchEvent, gameId: number, name: string, ...args: any[]) => void,
|
|
355
355
|
): this;
|
|
356
|
-
|
|
356
|
+
|
|
357
357
|
/**
|
|
358
358
|
* Register listener for a game exit event.
|
|
359
359
|
*
|
|
@@ -363,12 +363,12 @@ declare namespace overwolf {
|
|
|
363
363
|
*/
|
|
364
364
|
on(
|
|
365
365
|
eventName: 'game-exit',
|
|
366
|
-
listener: (event: Event, gameId: number,
|
|
366
|
+
listener: (event: Event, gameId: number, name: string, pid: number) => void,
|
|
367
367
|
): this;
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
|
-
* Register listener for when a detected game is ran as
|
|
371
|
-
* If this fires, it means the app must also run as
|
|
370
|
+
* Register listener for when a detected game is ran as adminstrator.
|
|
371
|
+
* If this fires, it means the app must also run as adminstrator in order for Game Events to be detected.
|
|
372
372
|
*
|
|
373
373
|
* @param {string | symbol} eventName Name of the node event ('elevated-privileges-required')
|
|
374
374
|
* @param {(Event, any[]) => void} listener The listener that will be invoked when this event is fired
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron",
|
|
3
|
-
"version": "39.
|
|
4
|
-
"owElectronVersion": "39.
|
|
5
|
-
"electronVersion": "39.
|
|
3
|
+
"version": "39.8.10-beta.1",
|
|
4
|
+
"owElectronVersion": "39.8.10-beta.1",
|
|
5
|
+
"electronVersion": "39.8.10",
|
|
6
6
|
"repository": "https://github.com/electron/electron",
|
|
7
7
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
8
8
|
"license": "MIT",
|
|
@@ -19,12 +19,25 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postinstall": "node install.js"
|
|
21
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.md",
|
|
25
|
+
"checksums.json",
|
|
26
|
+
"cli.js",
|
|
27
|
+
"electron.d.ts",
|
|
28
|
+
"ow-electron.d.ts",
|
|
29
|
+
"index.js",
|
|
30
|
+
"install.js"
|
|
31
|
+
],
|
|
22
32
|
"dependencies": {
|
|
23
|
-
"@electron/get": "^
|
|
24
|
-
"@types/node": "^
|
|
25
|
-
"extract-zip": "^
|
|
33
|
+
"@electron/get": "^2.0.0",
|
|
34
|
+
"@types/node": "^22.7.7",
|
|
35
|
+
"extract-zip": "^2.0.1"
|
|
26
36
|
},
|
|
27
37
|
"engines": {
|
|
28
|
-
|
|
38
|
+
"node": ">= 12.20.55"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"tag": "beta"
|
|
29
42
|
}
|
|
30
43
|
}
|