@overwolf/ow-electron 18.3.0
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/LICENSE +21 -0
- package/README.md +102 -0
- package/checksums.json +84 -0
- package/cli.js +25 -0
- package/electron.d.ts +17735 -0
- package/index.js +21 -0
- package/install.js +105 -0
- package/package.json +27 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Electron contributors
|
|
2
|
+
Copyright (c) 2013-2020 GitHub Inc.
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
5
|
+
a copy of this software and associated documentation files (the
|
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
10
|
+
the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
[](https://electronjs.org)
|
|
2
|
+
|
|
3
|
+
[](https://circleci.com/gh/electron/electron/tree/main)
|
|
4
|
+
[](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/main)
|
|
5
|
+
[](https://discord.com/invite/APGC3k5yaH)
|
|
6
|
+
|
|
7
|
+
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
|
8
|
+
View these docs in other languages at [electron/i18n](https://github.com/electron/i18n/tree/master/content/).
|
|
9
|
+
|
|
10
|
+
The Electron framework lets you write cross-platform desktop applications
|
|
11
|
+
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
|
12
|
+
[Chromium](https://www.chromium.org) and is used by the [Atom
|
|
13
|
+
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
|
|
14
|
+
|
|
15
|
+
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
|
|
16
|
+
announcements.
|
|
17
|
+
|
|
18
|
+
This project adheres to the Contributor Covenant
|
|
19
|
+
[code of conduct](https://github.com/electron/electron/tree/main/CODE_OF_CONDUCT.md).
|
|
20
|
+
By participating, you are expected to uphold this code. Please report unacceptable
|
|
21
|
+
behavior to [coc@electronjs.org](mailto:coc@electronjs.org).
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
To install prebuilt Electron binaries, use [`npm`](https://docs.npmjs.com/).
|
|
26
|
+
The preferred method is to install Electron as a development dependency in your
|
|
27
|
+
app:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npm install electron --save-dev
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
For more installation options and troubleshooting tips, see
|
|
34
|
+
[installation](docs/tutorial/installation.md). For info on how to manage Electron versions in your apps, see
|
|
35
|
+
[Electron versioning](docs/tutorial/electron-versioning.md).
|
|
36
|
+
|
|
37
|
+
## Quick start & Electron Fiddle
|
|
38
|
+
|
|
39
|
+
Use [`Electron Fiddle`](https://github.com/electron/fiddle)
|
|
40
|
+
to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and
|
|
41
|
+
to try out different versions of Electron. It's designed to make the start of your journey with
|
|
42
|
+
Electron easier.
|
|
43
|
+
|
|
44
|
+
Alternatively, clone and run the
|
|
45
|
+
[electron/electron-quick-start](https://github.com/electron/electron-quick-start)
|
|
46
|
+
repository to see a minimal Electron app in action:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
git clone https://github.com/electron/electron-quick-start
|
|
50
|
+
cd electron-quick-start
|
|
51
|
+
npm install
|
|
52
|
+
npm start
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Resources for learning Electron
|
|
56
|
+
|
|
57
|
+
- [electronjs.org/docs](https://electronjs.org/docs) - All of Electron's documentation
|
|
58
|
+
- [electron/fiddle](https://github.com/electron/fiddle) - A tool to build, run, and package small Electron experiments
|
|
59
|
+
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - A very basic starter Electron app
|
|
60
|
+
- [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - Sample starter apps created by the community
|
|
61
|
+
- [electron/simple-samples](https://github.com/electron/simple-samples) - Small applications with ideas for taking them further
|
|
62
|
+
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - An Electron app that teaches you how to use Electron
|
|
63
|
+
|
|
64
|
+
## Programmatic usage
|
|
65
|
+
|
|
66
|
+
Most people use Electron from the command line, but if you require `electron` inside
|
|
67
|
+
your **Node app** (not your Electron app) it will return the file path to the
|
|
68
|
+
binary. Use this to spawn Electron from Node scripts:
|
|
69
|
+
|
|
70
|
+
```javascript
|
|
71
|
+
const electron = require('electron')
|
|
72
|
+
const proc = require('child_process')
|
|
73
|
+
|
|
74
|
+
// will print something similar to /Users/maf/.../Electron
|
|
75
|
+
console.log(electron)
|
|
76
|
+
|
|
77
|
+
// spawn Electron
|
|
78
|
+
const child = proc.spawn(electron)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Mirrors
|
|
82
|
+
|
|
83
|
+
- [China](https://npmmirror.com/mirrors/electron)
|
|
84
|
+
|
|
85
|
+
## Documentation Translations
|
|
86
|
+
|
|
87
|
+
Find documentation translations in [electron/i18n](https://github.com/electron/i18n).
|
|
88
|
+
|
|
89
|
+
## Contributing
|
|
90
|
+
|
|
91
|
+
If you are interested in reporting/fixing issues and contributing directly to the code base, please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started.
|
|
92
|
+
|
|
93
|
+
## Community
|
|
94
|
+
|
|
95
|
+
Info on reporting bugs, getting help, finding third-party tools and sample apps,
|
|
96
|
+
and more can be found in the [support document](docs/tutorial/support.md#finding-support).
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
[MIT](https://github.com/electron/electron/blob/main/LICENSE)
|
|
101
|
+
|
|
102
|
+
When using the Electron or other GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos).
|
package/checksums.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chromedriver-v18.3.0-darwin-arm64.zip": "8792d019b3c888285219ec37f892b228415a87b789524183d27790a7af153686",
|
|
3
|
+
"chromedriver-v18.3.0-darwin-x64.zip": "b0afbe32bcf34844cfa6c01b5e7db90e69205c3e316e2fe22dff283e61d072c8",
|
|
4
|
+
"chromedriver-v18.3.0-linux-arm64.zip": "fac14cb340d851c0fe54b4365e0d643fe6ab7b7d021027e5a1ad8b2a15c64ef9",
|
|
5
|
+
"chromedriver-v18.3.0-linux-armv7l.zip": "cdb7f3eaa4291bd0720a86d94a6d3ec6b1056d90b5ead1cab720836c7922ad0d",
|
|
6
|
+
"chromedriver-v18.3.0-linux-ia32.zip": "6fe1c8448060f03854f344ca8308246bfd745d5f0ddcd7325be6c46992da1281",
|
|
7
|
+
"chromedriver-v18.3.0-linux-x64.zip": "c3050688acbc0678c2a2afee42755163220291063352d05152e332cbfcd80def",
|
|
8
|
+
"chromedriver-v18.3.0-mas-arm64.zip": "852dbe72d7e6e08cdb5ab1edece8c2320aa16ced4ecc79f02d7666298234cda3",
|
|
9
|
+
"chromedriver-v18.3.0-mas-x64.zip": "73d350087dc57e4fb3ab603c53d69d1135686bb3548285025a2276a27d4ce3e1",
|
|
10
|
+
"chromedriver-v18.3.0-win32-arm64.zip": "459a80b57a9777d6654e74a7c17ef1e67d4607517fe2bfa90612a4e1021f1a97",
|
|
11
|
+
"chromedriver-v18.3.0-win32-ia32.zip": "7d5475cc477c2837cec1aee1da1761001083560cdb0cc2d1f598ade2fa93c88d",
|
|
12
|
+
"chromedriver-v18.3.0-win32-x64.zip": "38b540a8b7424368b3a37b643e7fdefee9c2cea4d4b36314f7db1bcf14c6de21",
|
|
13
|
+
"electron-api.json": "31bde8d02accd466e4c8934e4e0d2d519b5dc3b4d989ff9e1b83033eca636925",
|
|
14
|
+
"electron-v18.3.0-darwin-arm64-dsym-snapshot.zip": "2c8b07290723fd383bd06a8e094d381d5bd8307431a741d4e16b1f04fd5a8a8c",
|
|
15
|
+
"electron-v18.3.0-darwin-arm64-dsym.zip": "baa6f0ed002c005f7699ca7ae701592d7e265e5c1b8e20163d7a39d3a14ad727",
|
|
16
|
+
"electron-v18.3.0-darwin-arm64-symbols.zip": "122a11dde14f2013d281a352e6297d6ccf170ef5e51d2c508aab9730466bb0b7",
|
|
17
|
+
"electron-v18.3.0-darwin-arm64.zip": "ce6b65f6aec57958c7a13ff1362a62ea53347d6c60d983be5aa676e63d00ef1c",
|
|
18
|
+
"electron-v18.3.0-darwin-x64-dsym-snapshot.zip": "03a009ce455fbed2fa33bd0c37da9a5a057801fae1664f215192c662e35c5251",
|
|
19
|
+
"electron-v18.3.0-darwin-x64-dsym.zip": "18badd690aacc443b56d7a4fcab1e58a6179f2d8b8d743f1c2fa60bc25c7b263",
|
|
20
|
+
"electron-v18.3.0-darwin-x64-symbols.zip": "f1fee00bf716917500c3e44b16aa4241f7d28697988cd857460f3364f433c859",
|
|
21
|
+
"electron-v18.3.0-darwin-x64.zip": "13b9946cf9ee19e0370609a3ea1c9413a8fdf4da22abc0bbdc90c9fcb54aaeb4",
|
|
22
|
+
"electron-v18.3.0-linux-arm64-debug.zip": "54834e1e5faa7274ff22456d21edb17b08522cbb94724c027f0e69c1bf12f7f1",
|
|
23
|
+
"electron-v18.3.0-linux-arm64-symbols.zip": "89f454855639d40053651f8be235da3d8102485d5c1955e5bca29158b048cb61",
|
|
24
|
+
"electron-v18.3.0-linux-arm64.zip": "bc193b74f870599e62c8e869a99dc06ff4ad8b3380d2b98a6b9f1a4bdaf01dbb",
|
|
25
|
+
"electron-v18.3.0-linux-armv7l-debug.zip": "54834e1e5faa7274ff22456d21edb17b08522cbb94724c027f0e69c1bf12f7f1",
|
|
26
|
+
"electron-v18.3.0-linux-armv7l-symbols.zip": "3555509a08d2572eba462d77233ad3cbf81533f686aeab174f65817d6b63b608",
|
|
27
|
+
"electron-v18.3.0-linux-armv7l.zip": "9ac36dc5d8eba67e084241a92b2f910ef7c9b4885a012a9a84735713b724b033",
|
|
28
|
+
"electron-v18.3.0-linux-ia32-debug.zip": "54834e1e5faa7274ff22456d21edb17b08522cbb94724c027f0e69c1bf12f7f1",
|
|
29
|
+
"electron-v18.3.0-linux-ia32-symbols.zip": "626c75c808a83db889b790f8a52e76a38ba29ea9098e9ac2fe0d405b07b4ff3a",
|
|
30
|
+
"electron-v18.3.0-linux-ia32.zip": "a7bbb6c01231d989926220463805d1ec4e63478cae0f5674ec06b501b1db6500",
|
|
31
|
+
"electron-v18.3.0-linux-x64-debug.zip": "34cbcae1af438dd8c5fb3e3c2438ac72351e9fda46e9b5dd834d54c73b50f365",
|
|
32
|
+
"electron-v18.3.0-linux-x64-symbols.zip": "3ce928bcb2995546e6488e27df555ee55233fa3ba3a9f1c8bf24af4d253be16f",
|
|
33
|
+
"electron-v18.3.0-linux-x64.zip": "ff1af36b6bb75e92c1fd963d7c9447e2d5ed2c111ebec5d4ad29c15fd9fe160c",
|
|
34
|
+
"electron-v18.3.0-mas-arm64-dsym-snapshot.zip": "2c8b07290723fd383bd06a8e094d381d5bd8307431a741d4e16b1f04fd5a8a8c",
|
|
35
|
+
"electron-v18.3.0-mas-arm64-dsym.zip": "3e6beba0951efe08ecaa7da369c588cba6044e7ee4507f5cee9e33667943ee35",
|
|
36
|
+
"electron-v18.3.0-mas-arm64-symbols.zip": "7ed7549329a7cbc029dab566a803ff078c0723ba87ba74bb2c2ece5748c3eef9",
|
|
37
|
+
"electron-v18.3.0-mas-arm64.zip": "cc8e3aa7e6739570fa06138bc56561ba1a9cdb2fbb7eb67d7286ef6be24c0b43",
|
|
38
|
+
"electron-v18.3.0-mas-x64-dsym-snapshot.zip": "861396c661c44e5e6ea2d29fab783dfcb9fcb05bfda1f7ea11f273d7a9c7d22b",
|
|
39
|
+
"electron-v18.3.0-mas-x64-dsym.zip": "ebb51d0f960538ecc9a36775b6c6cab43973b0ca5403aada7496f41ebb0fc62b",
|
|
40
|
+
"electron-v18.3.0-mas-x64-symbols.zip": "0602cab6cb62ef07f11dca2368fe467a30a5b2847caebb318f32450f40d22c35",
|
|
41
|
+
"electron-v18.3.0-mas-x64.zip": "3c7b5319b97faf065362489b553114eca0d6788b7e18fdefce1f45f5b9a8790e",
|
|
42
|
+
"electron-v18.3.0-win32-arm64-pdb.zip": "4e7b649fa4d8d7cb0fe9e5fec1a4737363742f4336b7093eabbb30f8a6e16772",
|
|
43
|
+
"electron-v18.3.0-win32-arm64-symbols.zip": "8961ef6d66072eb61773764693de718d86c46789d5e0b9eefe1eb3b427a080ec",
|
|
44
|
+
"electron-v18.3.0-win32-arm64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
45
|
+
"electron-v18.3.0-win32-arm64.zip": "c92d767379ee62f5e2354bb24cef919528a9e27eb566f9d389e863fdc68504d4",
|
|
46
|
+
"electron-v18.3.0-win32-ia32-pdb.zip": "1570d663b0571d1b81c19a75ecf6d023d70ec93146214463ed94eb5e113fd42c",
|
|
47
|
+
"electron-v18.3.0-win32-ia32-symbols.zip": "ffd7689a4f81b903cf3237df57768e6c0a057e5aa74489067a8b8e2a5b59e544",
|
|
48
|
+
"electron-v18.3.0-win32-ia32-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
49
|
+
"electron-v18.3.0-win32-ia32.zip": "a98b7a24bca992f48519ee1c8b788d5cbd358ae1cee52bf1907ba4434ae93ba3",
|
|
50
|
+
"electron-v18.3.0-win32-x64-pdb.zip": "181bfc5ead1f846dd660580aedf360492dd62207936b1fb9356dd618783c2645",
|
|
51
|
+
"electron-v18.3.0-win32-x64-symbols.zip": "dbf3946bea82dbf25288ee5b6b582ec613dd586f071ea374ce1f26f94b1a06a6",
|
|
52
|
+
"electron-v18.3.0-win32-x64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
53
|
+
"electron-v18.3.0-win32-x64.zip": "6fc830a79d218f6fd8653a33d40b0d4a6403a642c6431b17699e58c03d59ec75",
|
|
54
|
+
"electron.d.ts": "6f6216415cab61439c302db311daad4383e9842c197070fde58623810c1061fc",
|
|
55
|
+
"ffmpeg-v18.3.0-darwin-arm64.zip": "56d1cd1b3b2bc526f721ab1c095aeba12633cdaf3334689ce9b0c1bc387ff26c",
|
|
56
|
+
"ffmpeg-v18.3.0-darwin-x64.zip": "706635adc29254d47bc9b2d7992c56151dc0ec90fd1959b0618a52bee462b9ed",
|
|
57
|
+
"ffmpeg-v18.3.0-linux-arm64.zip": "42eac6bdafe3ded1b26145f54818e22b1c542fe92c6ef5f56f374090cc3b851f",
|
|
58
|
+
"ffmpeg-v18.3.0-linux-armv7l.zip": "bed274309e718ab67c3a03810ff52b8e1ea0699a47cef58892e72360a33290bb",
|
|
59
|
+
"ffmpeg-v18.3.0-linux-ia32.zip": "4ae57e82f25971be1c36ce152b8ab5399799b96d75839082d10688a0aa34f8c0",
|
|
60
|
+
"ffmpeg-v18.3.0-linux-x64.zip": "31aa0e2efeaf84f5541da6dcda54869570bdc4c037a113a3966a406fc3b34fff",
|
|
61
|
+
"ffmpeg-v18.3.0-mas-arm64.zip": "c87b5e3b0b6b14b37ca3ec7407915d0b545041321778c4097a114b54ea046f70",
|
|
62
|
+
"ffmpeg-v18.3.0-mas-x64.zip": "4257944b2c07d1646939eabb8c6a878a0d973cabbaeea67323105dbac787be84",
|
|
63
|
+
"ffmpeg-v18.3.0-win32-arm64.zip": "fc8c59a2f41d7628777fdefe809f48dd588702a6962869f12df4eb35d869ea54",
|
|
64
|
+
"ffmpeg-v18.3.0-win32-ia32.zip": "d42f80c0fa675af1205bbc992746dcd36b4a680fcdf655956d80d5d1194de173",
|
|
65
|
+
"ffmpeg-v18.3.0-win32-x64.zip": "d5d0d99c34f83034d6faff1b6f9be9d4e47744b456f9b06515470ab1151c3ec7",
|
|
66
|
+
"hunspell_dictionaries.zip": "61d98a70d9d4e1820b96a65ebcb87194f4d9f2e2ae29d5a775b1562f086913e8",
|
|
67
|
+
"libcxx-objects-v18.3.0-linux-arm64.zip": "cb69b4602d5ea0250f7d42e7065c8a9e06f6d3b9646ba36cd3e53292bf95274b",
|
|
68
|
+
"libcxx-objects-v18.3.0-linux-armv7l.zip": "155ec36cfea03dbe3096573dcdd45dc0443001ce1442b15af780f26d4e158d05",
|
|
69
|
+
"libcxx-objects-v18.3.0-linux-ia32.zip": "972cce9b06f6bef0ce6802d752d5b693997d11ccf82151f5ee553fb918d26441",
|
|
70
|
+
"libcxx-objects-v18.3.0-linux-x64.zip": "ba302ba05edde50c47de6641db7cdc84fb09d01c473cdd57aa1ee5acbb079ee9",
|
|
71
|
+
"libcxx_headers.zip": "bceb65af07386efc1985d16150986cd5a3be56bcb83c4d49965d58ef7f02af2d",
|
|
72
|
+
"libcxxabi_headers.zip": "1aed7773f3639ff84c8a608ceca94296756f0d8edf21434dd77ea57b213f7cb3",
|
|
73
|
+
"mksnapshot-v18.3.0-darwin-arm64.zip": "978711e28918ef3521b5c32390f4372d0fd68ef6c9e8f6e8da5efb3bc08e4fe3",
|
|
74
|
+
"mksnapshot-v18.3.0-darwin-x64.zip": "bdcf63bf6d7f3886ee2e79a351aa139677456bda9f5a2beff716d0d29bb7268b",
|
|
75
|
+
"mksnapshot-v18.3.0-linux-arm64-x64.zip": "5f376b2bfad35fe3da1493e030ee2db8e6a7e79e8024a9d66562962feba5c3d9",
|
|
76
|
+
"mksnapshot-v18.3.0-linux-armv7l-x64.zip": "9edccb5c673f68fe2cf74339e9ff5e1551277226667fe9b11f41ce726d1ee8a2",
|
|
77
|
+
"mksnapshot-v18.3.0-linux-ia32.zip": "0dfecd4ff0a705f2b528d3bd4f89baa83d1269aa5283cc0b2655bf4bf45b4cef",
|
|
78
|
+
"mksnapshot-v18.3.0-linux-x64.zip": "7b84eb0dd35f0035b1cdd8ae90c50f093aae9226e801ee36b60665ec31ff9d9b",
|
|
79
|
+
"mksnapshot-v18.3.0-mas-arm64.zip": "a33a9949327114da5023a7445d55595c840054bb5ed5548c2afa91caf8c104fc",
|
|
80
|
+
"mksnapshot-v18.3.0-mas-x64.zip": "d013d796e6ff652e0cf94e56553fd3762bd6e97d9181c73128374e4a3941a514",
|
|
81
|
+
"mksnapshot-v18.3.0-win32-arm64-x64.zip": "f01d830da849ea88d6ac6759fd71e33f24e914791018466a9c0086196f0bf62c",
|
|
82
|
+
"mksnapshot-v18.3.0-win32-ia32.zip": "81e3e207c941fe94b1c967b11300cd870da1ad7790ee1cf4555b03dfefd655e6",
|
|
83
|
+
"mksnapshot-v18.3.0-win32-x64.zip": "88eb292618da8abbcd309f648783b70423a7e3f358aa5d3d1e41fb054512632c"
|
|
84
|
+
}
|
package/cli.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const electron = require('./');
|
|
4
|
+
|
|
5
|
+
const proc = require('child_process');
|
|
6
|
+
|
|
7
|
+
const child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false });
|
|
8
|
+
child.on('close', function (code, signal) {
|
|
9
|
+
if (code === null) {
|
|
10
|
+
console.error(electron, 'exited with signal', signal);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
process.exit(code);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const handleTerminationSignal = function (signal) {
|
|
17
|
+
process.on(signal, function signalHandler () {
|
|
18
|
+
if (!child.killed) {
|
|
19
|
+
child.kill(signal);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
handleTerminationSignal('SIGINT');
|
|
25
|
+
handleTerminationSignal('SIGTERM');
|