-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72f7956
commit 1393dc8
Showing
8 changed files
with
19,795 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Copyright (c) Electron contributors | ||
Copyright (c) 2013-2020 GitHub Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
[![Electron Logo](https://electronjs.org/images/electron-logo.svg)](https://electronjs.org) | ||
|
||
[![CircleCI Build Status](https://circleci.com/gh/electron/electron/tree/main.svg?style=shield)](https://circleci.com/gh/electron/electron/tree/main) | ||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/4lggi9dpjc1qob7k/branch/main?svg=true)](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/main) | ||
[![Electron Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=chat&logo=discord&logoColor=white)](https://discord.gg/electronjs) | ||
|
||
:memo: Available Translations: 🇨🇳 🇧🇷 🇪🇸 🇯🇵 🇷🇺 🇫🇷 🇺🇸 🇩🇪. | ||
View these docs in other languages on our [Crowdin](https://crowdin.com/project/electron) project. | ||
|
||
The Electron framework lets you write cross-platform desktop applications | ||
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and | ||
[Chromium](https://www.chromium.org) and is used by the [Atom | ||
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps). | ||
|
||
Follow [@electronjs](https://twitter.com/electronjs) on Twitter for important | ||
announcements. | ||
|
||
This project adheres to the Contributor Covenant | ||
[code of conduct](https://github.com/electron/electron/tree/main/CODE_OF_CONDUCT.md). | ||
By participating, you are expected to uphold this code. Please report unacceptable | ||
behavior to [[email protected]](mailto:[email protected]). | ||
|
||
## Installation | ||
|
||
To install prebuilt Electron binaries, use [`npm`](https://docs.npmjs.com/). | ||
The preferred method is to install Electron as a development dependency in your | ||
app: | ||
|
||
```sh | ||
npm install electron --save-dev | ||
``` | ||
|
||
For more installation options and troubleshooting tips, see | ||
[installation](docs/tutorial/installation.md). For info on how to manage Electron versions in your apps, see | ||
[Electron versioning](docs/tutorial/electron-versioning.md). | ||
|
||
## Platform support | ||
|
||
Each Electron release provides binaries for macOS, Windows, and Linux. | ||
|
||
* macOS (Catalina and up): Electron provides 64-bit Intel and ARM binaries for macOS. Apple Silicon support was added in Electron 11. | ||
* Windows (Windows 10 and up): Electron provides `ia32` (`x86`), `x64` (`amd64`), and `arm64` binaries for Windows. Windows on ARM support was added in Electron 5.0.8. Support for Windows 7, 8 and 8.1 was [removed in Electron 23, in line with Chromium's Windows deprecation policy](https://www.electronjs.org/blog/windows-7-to-8-1-deprecation-notice). | ||
* Linux: The prebuilt binaries of Electron are built on Ubuntu 20.04. They have also been verified to work on: | ||
* Ubuntu 14.04 and newer | ||
* Fedora 24 and newer | ||
* Debian 8 and newer | ||
|
||
## Quick start & Electron Fiddle | ||
|
||
Use [`Electron Fiddle`](https://github.com/electron/fiddle) | ||
to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and | ||
to try out different versions of Electron. It's designed to make the start of your journey with | ||
Electron easier. | ||
|
||
Alternatively, clone and run the | ||
[electron/electron-quick-start](https://github.com/electron/electron-quick-start) | ||
repository to see a minimal Electron app in action: | ||
|
||
```sh | ||
git clone https://github.com/electron/electron-quick-start | ||
cd electron-quick-start | ||
npm install | ||
npm start | ||
``` | ||
|
||
## Resources for learning Electron | ||
|
||
* [electronjs.org/docs](https://electronjs.org/docs) - All of Electron's documentation | ||
* [electron/fiddle](https://github.com/electron/fiddle) - A tool to build, run, and package small Electron experiments | ||
* [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - A very basic starter Electron app | ||
* [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - Sample starter apps created by the community | ||
|
||
## Programmatic usage | ||
|
||
Most people use Electron from the command line, but if you require `electron` inside | ||
your **Node app** (not your Electron app) it will return the file path to the | ||
binary. Use this to spawn Electron from Node scripts: | ||
|
||
```javascript | ||
const electron = require('electron') | ||
const proc = require('node:child_process') | ||
|
||
// will print something similar to /Users/maf/.../Electron | ||
console.log(electron) | ||
|
||
// spawn Electron | ||
const child = proc.spawn(electron) | ||
``` | ||
|
||
### Mirrors | ||
|
||
* [China](https://npmmirror.com/mirrors/electron/) | ||
|
||
See the [Advanced Installation Instructions](https://www.electronjs.org/docs/latest/tutorial/installation#mirror) to learn how to use a custom mirror. | ||
|
||
## Documentation translations | ||
|
||
We crowdsource translations for our documentation via [Crowdin](https://crowdin.com/project/electron). | ||
We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese, | ||
Russian, and Spanish. | ||
|
||
## Contributing | ||
|
||
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. | ||
|
||
## Community | ||
|
||
Info on reporting bugs, getting help, finding third-party tools and sample apps, | ||
and more can be found on the [Community page](https://www.electronjs.org/community). | ||
|
||
## License | ||
|
||
[MIT](https://github.com/electron/electron/blob/main/LICENSE) | ||
|
||
When using Electron logos, make sure to follow [OpenJS Foundation Trademark Policy](https://openjsf.org/wp-content/uploads/sites/84/2021/01/OpenJS-Foundation-Trademark-Policy-2021-01-12.docx.pdf). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"chromedriver-v27.0.3-darwin-arm64.zip": "461fb41e67c9b3d1115c7ce63ed9821fc555ec70bfeef4356a530fe8bfd54440", | ||
"chromedriver-v27.0.3-darwin-x64.zip": "0631e8a8f4b9f8aca99e5741dc5e582c651d8e4c3b93842c6a1c90fc89e7bb79", | ||
"chromedriver-v27.0.3-linux-arm64.zip": "56657262a394223095af48371d6e0823a164b9bf4babf73d0c4516495eac2678", | ||
"chromedriver-v27.0.3-linux-armv7l.zip": "7464218070dd9578273af166c77e9e37ecd8a555774e0e2ec16911ae0507d148", | ||
"chromedriver-v27.0.3-linux-x64.zip": "5a1a4b16b8a179476b16d48f38f6bf867e390e11f3434b2fa51c55f07e0cb972", | ||
"chromedriver-v27.0.3-mas-arm64.zip": "3531b43ecec025af7c13e2ab29d884ceea13a35ed20d868f52fc6d55958d128b", | ||
"chromedriver-v27.0.3-mas-x64.zip": "d4764c843dd4ead8163c1f008e401594cf63007fa588873c3c8dfffe149e2c8d", | ||
"chromedriver-v27.0.3-win32-arm64.zip": "11b91e1edf4be52ee76ed5efaa68d60fb0d32f9864d9152be74a0110b6833b74", | ||
"chromedriver-v27.0.3-win32-ia32.zip": "4ef54da51a2f2af7c7ca9a9d3e695ceb04cc6df611a22a6c00d752c0377000f5", | ||
"chromedriver-v27.0.3-win32-x64.zip": "53d35cfc2797ff9731bc21ed72db9ca85ac2bba41ba9050363ca611bc1cf8cc4", | ||
"electron-api.json": "a672b9e923b443a703c375d355d5eb0b46fbbec4714f5ce6c4d415eb228b29f1", | ||
"electron-v27.0.3-darwin-arm64-dsym-snapshot.zip": "7a4db7ec47a8aa05b0ee0ef485f047ded0b92907e117d2fa0ea489870c656097", | ||
"electron-v27.0.3-darwin-arm64-dsym.zip": "bd4ca8d5e2af671022dbd9b7b6b4b5e30923a5eac55c5941ed1cf33ea3e68073", | ||
"electron-v27.0.3-darwin-arm64-symbols.zip": "52f8d39ee3b0fe4f6ae65d975f811d52b32ce513d5fb467b8dc9c1fc527cac74", | ||
"electron-v27.0.3-darwin-arm64.zip": "a6f536ef69b73c7088e368e581ec0d3979fe1ba8f7e321f4a5d16b6c6aba294e", | ||
"electron-v27.0.3-darwin-x64-dsym-snapshot.zip": "2d784bede34aba9015c5a75a42ad3fd70488b137b4baf695fbb958bce9e568b0", | ||
"electron-v27.0.3-darwin-x64-dsym.zip": "550635e87fa56691e2e45515accdf20667edeec4a0714869a326e90604c52f52", | ||
"electron-v27.0.3-darwin-x64-symbols.zip": "33f9b2252f38e2be696a3cb108c59512ba68849b02e324ad90f39f2a1a440e82", | ||
"electron-v27.0.3-darwin-x64.zip": "1cdd1ff09d2bed11ac910ec2be6b4f930010b6404c9f7fa6c5aa47270055ce15", | ||
"electron-v27.0.3-linux-arm64-debug.zip": "51bb7cbffd983830b86f558db01dbf4445ad6dbc95baddf502945416f8f13fa2", | ||
"electron-v27.0.3-linux-arm64-symbols.zip": "c10c920f879c19aebba37bf15ae3285949aba96493b8d3f90bffa80758e359ba", | ||
"electron-v27.0.3-linux-arm64.zip": "f469f606211e5783c50bfa0d70aca9783bf3a74e42e76053e1655e8b0ba9e3e6", | ||
"electron-v27.0.3-linux-armv7l-debug.zip": "51bb7cbffd983830b86f558db01dbf4445ad6dbc95baddf502945416f8f13fa2", | ||
"electron-v27.0.3-linux-armv7l-symbols.zip": "3c3dc0529efbea2bde081ba14aa8d4f14428322c5a309ce51825af3a27568b7f", | ||
"electron-v27.0.3-linux-armv7l.zip": "1bf1156d46630eaa0cbccd60aa966c9932339b3531f809b0e141546c7e8de15c", | ||
"electron-v27.0.3-linux-x64-debug.zip": "9e9f4ea87edbd4087b50fcc4820e7983b86bf28f106552323ba805201b7aa072", | ||
"electron-v27.0.3-linux-x64-symbols.zip": "078fee788da94c0e1ebbcab5ce3411240d5fcd9695c867df7454a793eb4439a2", | ||
"electron-v27.0.3-linux-x64.zip": "10919cce3ffb05089e61268629e5160028d40910a7fb9abb93ce3513804297a9", | ||
"electron-v27.0.3-mas-arm64-dsym-snapshot.zip": "b69878d4aa1dfb1d2f784bda0cb5728bbbd4a3d916577829bdff65432e5ed4d3", | ||
"electron-v27.0.3-mas-arm64-dsym.zip": "d02620c03142fd476241d78b52bd44e07a62a43a78ce67066e8bfe75dc79ce20", | ||
"electron-v27.0.3-mas-arm64-symbols.zip": "17b669e16fc9f68b0c844fcb0c528ffd15961a35dbb8873fd086cf4d81357e3a", | ||
"electron-v27.0.3-mas-arm64.zip": "0b4de7206339be0c38b4aece24fece2bbf3f86abe131cb09c3c44e44ebc0504c", | ||
"electron-v27.0.3-mas-x64-dsym-snapshot.zip": "38515fd89766085aa5eb574d983df7b3163611e06e06becca9a67778d4095b09", | ||
"electron-v27.0.3-mas-x64-dsym.zip": "b64bb0e7fa1d74d873f09d2c9699a968e0bd09531448388a1309b38e4a295d5b", | ||
"electron-v27.0.3-mas-x64-symbols.zip": "b20ce87c71f2d3e9cf91fd6bec1b95ef9ec76159c24b275048ad2bc78635d1c8", | ||
"electron-v27.0.3-mas-x64.zip": "26566148c03ecbff59c92ae39cce209fdf9b9290bfca26cf8f3db84eb261386b", | ||
"electron-v27.0.3-win32-arm64-pdb.zip": "88c2e3728d7a30cea9005c2923055599299f66cf67b4270ef800ddce80e895bd", | ||
"electron-v27.0.3-win32-arm64-symbols.zip": "43ee52bdb83f90979dd773cb6117abf2790bc0d671c00a9dedea0395ce3e4ac4", | ||
"electron-v27.0.3-win32-arm64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", | ||
"electron-v27.0.3-win32-arm64.zip": "133c73d08d20b8f87be10654c3e84b503d2ed08467e23f6d60b680dd970f5874", | ||
"electron-v27.0.3-win32-ia32-pdb.zip": "32a5810c879c51ef24b1ebb696506964c6866d14c84de2f3d2d432e9390125b8", | ||
"electron-v27.0.3-win32-ia32-symbols.zip": "7a69bfa40d4f24a23042820621e9c7d000c3c08e6a856a4a1408051f4c97b31f", | ||
"electron-v27.0.3-win32-ia32-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", | ||
"electron-v27.0.3-win32-ia32.zip": "6de967af6a4da56971d9175c2e65009fe13046e78a9f25ba0930f6afec68aff6", | ||
"electron-v27.0.3-win32-x64-pdb.zip": "f69d7bb78eb4e7c0ded98396dd7551fe89533de51471808713122f0e88abe38e", | ||
"electron-v27.0.3-win32-x64-symbols.zip": "a696e19ca5bdca94550953bbdaff19a480f0eaeee6c3d6823fe6c33f55425d5d", | ||
"electron-v27.0.3-win32-x64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", | ||
"electron-v27.0.3-win32-x64.zip": "8d61deaa158cc2eba43a92e70fcd31a6a519ab740572b0c6feebec99a4c250d1", | ||
"electron.d.ts": "2fe95aa458a31ae5ea4bd5c36ffd20e9b9a90227ffec47d77527c75be96b1a34", | ||
"ffmpeg-v27.0.3-darwin-arm64.zip": "14686e4c4c10a2bcb20ab5130c12aec0653ee1c53be6af0fd74e33a53ca959db", | ||
"ffmpeg-v27.0.3-darwin-x64.zip": "6b5e009200fdf535c2a62a31a699a98add8101716002197558de0e20ce9c92b8", | ||
"ffmpeg-v27.0.3-linux-arm64.zip": "be517ba93c5b5f36d2e55af148213f4c2fc43177563825601bee6f88dd4f7b05", | ||
"ffmpeg-v27.0.3-linux-armv7l.zip": "926d0da25ffcea3d05a6cbcae15e5d7729d93bc43394ae4439747669d2210e1d", | ||
"ffmpeg-v27.0.3-linux-x64.zip": "6f9c0ef52af14828ad547a80b17f8c63cac51a18b8d5769a2f33e4fa6cccfc7e", | ||
"ffmpeg-v27.0.3-mas-arm64.zip": "9fdf0a9bea92c5e7dc6812d2ff870087e75929d186cf723359b25f21bf5e12d7", | ||
"ffmpeg-v27.0.3-mas-x64.zip": "638a0301264de0c59a27d2f8d86dbff66e0469c0dc6279bbe4442f81537073b1", | ||
"ffmpeg-v27.0.3-win32-arm64.zip": "665ac17ec5195a845b5394dd72cbc6a22a06690df9810b996b4995aa7e7a9cdc", | ||
"ffmpeg-v27.0.3-win32-ia32.zip": "f81558d729367f888abec58d69096b342e391dff301969176d643fa029c91cf2", | ||
"ffmpeg-v27.0.3-win32-x64.zip": "d5c2459915ce9ba7f98e867090810f06c1897cf609b7cfe64769cb4ce6a1f776", | ||
"hunspell_dictionaries.zip": "48a682e6c66f35d34e004b5968e7288dc21842909c9d0a8bb7b3827db35aabea", | ||
"libcxx-objects-v27.0.3-linux-arm64.zip": "871c4d66f15728240eeec1eb92a829fa1b6402453f28afdd33e25b0893dba7d1", | ||
"libcxx-objects-v27.0.3-linux-armv7l.zip": "5ab0d6a097fcd5c658c678d5acf7b834fbd8d589c93247fb3bfb415cf1acba96", | ||
"libcxx-objects-v27.0.3-linux-x64.zip": "eec7ca0a7ea36c4ed59b0d5870a3751332629410076db8e3c85d36fe14a1014d", | ||
"libcxx_headers.zip": "ffaebf9aadede46dcc9e3ca82c27038637f8da95013007cf6e31245ebe235589", | ||
"libcxxabi_headers.zip": "11848769d3d7d3bd55ffa3dd756233b60e315be9418ef5e1661af60b170b726a", | ||
"mksnapshot-v27.0.3-darwin-arm64.zip": "9244edba22c60e6519d99f309473312a24de4c42b9fd0cff0c080b7331f5c294", | ||
"mksnapshot-v27.0.3-darwin-x64.zip": "a33c57c38ce48ab59ac7ec8e35dea58fc933c66f4dda6023c5ec5a1d855d45c6", | ||
"mksnapshot-v27.0.3-linux-arm64-x64.zip": "883a6e58374267c6473c83365dde573f48133d89de61a8099c865c0df985aa1b", | ||
"mksnapshot-v27.0.3-linux-armv7l-x64.zip": "2b24e2a200b9871443daf602114ce001cf8ad9d43a413e8bb6d15e9c3d6ab5bd", | ||
"mksnapshot-v27.0.3-linux-x64.zip": "606fd952b32bf310b814511a330cd07f474f7dd755e0097e58909e8d42be3e0b", | ||
"mksnapshot-v27.0.3-mas-arm64.zip": "2b03be5f55b00cb50437b1e68e64b61fd12a2f4b80ac368d1d52950980c1f0d2", | ||
"mksnapshot-v27.0.3-mas-x64.zip": "e6407b2a1f495e2d99e92a0daef13ed88f29fc4872eed92f8b921e0265c6bcb0", | ||
"mksnapshot-v27.0.3-win32-arm64-x64.zip": "dfa2ab886ec5fec191cc0aa0ccde10242de91d883b9350b27539a81e82752807", | ||
"mksnapshot-v27.0.3-win32-ia32.zip": "f0f5a918b089e918bf8496cd78254cea467bfe5af6ace6d9e60bb293a0c80130", | ||
"mksnapshot-v27.0.3-win32-x64.zip": "d4a33b392b9b24ce811752f1b15654522f9824a64066e0982bd7daf5fbb88601" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env node | ||
|
||
const electron = require('./'); | ||
|
||
const proc = require('child_process'); | ||
|
||
const child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false }); | ||
child.on('close', function (code, signal) { | ||
if (code === null) { | ||
console.error(electron, 'exited with signal', signal); | ||
process.exit(1); | ||
} | ||
process.exit(code); | ||
}); | ||
|
||
const handleTerminationSignal = function (signal) { | ||
process.on(signal, function signalHandler () { | ||
if (!child.killed) { | ||
child.kill(signal); | ||
} | ||
}); | ||
}; | ||
|
||
handleTerminationSignal('SIGINT'); | ||
handleTerminationSignal('SIGTERM'); |
Oops, something went wrong.