-
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
21a1e00
commit 1b86606
Showing
8 changed files
with
23,997 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) | ||
|
||
[![GitHub Actions Build Status](https://github.com/electron/electron/actions/workflows/build.yml/badge.svg)](https://github.com/electron/electron/actions/workflows/build.yml) | ||
[![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 | ||
[Visual Studio Code](https://github.com/Microsoft/vscode/) 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 18.04 and newer | ||
* Fedora 32 and newer | ||
* Debian 10 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://trademark-policy.openjsf.org/). |
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-v32.0.1-darwin-arm64.zip": "f65f368fd4b87e7393c19c6d371b324e4f9dd813ae9236fb5daf8cfdc6d524c8", | ||
"chromedriver-v32.0.1-darwin-x64.zip": "6421a0a70b95ec3f29b23ba7922bd01eb20994ec85112b1419ba12dff4d43631", | ||
"chromedriver-v32.0.1-linux-arm64.zip": "79d8a68e363357d578322290dc3d1544b429f6b86dce8f7b26fa8e6b2ede15a9", | ||
"chromedriver-v32.0.1-linux-armv7l.zip": "6de4a0d2141ef592fab3f98e30856ce2fc12adaff3debbf2f8c5f9c9778f7422", | ||
"chromedriver-v32.0.1-linux-x64.zip": "be87aaeb50372c6bc4686e3b0b5d263025501a59ad940497da1ef9d4af3db30b", | ||
"chromedriver-v32.0.1-mas-arm64.zip": "1724b8f7ebcd8f51684213f487d2d4aff4624f9cb99c226105c1a3c2c85c77ba", | ||
"chromedriver-v32.0.1-mas-x64.zip": "2fe7dc34d75406fecdf8fc11a9baa31f147c1b5f2c7615c22fa2362541d173b9", | ||
"chromedriver-v32.0.1-win32-arm64.zip": "5592f8b94e386e6df43294015c0254c63a9911fd1133a4dc7b0137cf04763671", | ||
"chromedriver-v32.0.1-win32-ia32.zip": "4b670fd6cddbea252b7d7d3a93571dec84226912055a8a2a3a8d17dd350f8945", | ||
"chromedriver-v32.0.1-win32-x64.zip": "5072f93376fc6b66a0e0f84d7cd40f5761bbbd669c6e37441764315ce3980c90", | ||
"electron-api.json": "817eb3a244e24b0794bdb6b2314a3994189d2e360a871e755c7242eadcceaf27", | ||
"electron-v32.0.1-darwin-arm64-dsym-snapshot.zip": "661e00cb1a27bba9b9e3f84be04a8a3ac5cf754187d2485f00b13ce0e8c8f2c1", | ||
"electron-v32.0.1-darwin-arm64-dsym.zip": "16e835537847ce01c2dae66a2795232ef16d109dd63a0eb87ad94f828f851ce6", | ||
"electron-v32.0.1-darwin-arm64-symbols.zip": "c06bdaf7f4474767cc928a965e907df0e65028ec327aea2c9d5f87b9a3c32f55", | ||
"electron-v32.0.1-darwin-arm64.zip": "8db368fd7353333b53092ccfdcd440b7bae1195e7950e1fb42b7606bd684802b", | ||
"electron-v32.0.1-darwin-x64-dsym-snapshot.zip": "7062a0fefa6abfb329339aa3636afb2310f0a730679571ef5112b6ec550ab6bc", | ||
"electron-v32.0.1-darwin-x64-dsym.zip": "923b6ef18b5256c87ce9d6343167d4acdae0459cabc9daa37fdfb96e195d6e56", | ||
"electron-v32.0.1-darwin-x64-symbols.zip": "df40b0b42831972c7e4bf975e65e132e5a0efdc00e89a0aded0884251a050ea6", | ||
"electron-v32.0.1-darwin-x64.zip": "295f659e58a352043b91a3ea1251edc2f33692e00eb7b1f1b1d47e7b0b9bd02c", | ||
"electron-v32.0.1-linux-arm64-debug.zip": "d95ea07cca74d4c6d2dcba682765263124d7100d41d60e247268c8d3072991cf", | ||
"electron-v32.0.1-linux-arm64-symbols.zip": "7f0995ed399f8c74c952e9d6a3d7a6bd5bd7a485b7d08767a4527a74e5d61675", | ||
"electron-v32.0.1-linux-arm64.zip": "a4f2e36b22a8aebd385a21012cfdb480de781240aafe5ddc4248565a10579242", | ||
"electron-v32.0.1-linux-armv7l-debug.zip": "d95ea07cca74d4c6d2dcba682765263124d7100d41d60e247268c8d3072991cf", | ||
"electron-v32.0.1-linux-armv7l-symbols.zip": "fb21700ec429b87a2999f5da3f6a805f2ed88ad94a7d7689e149a2e00813f2e8", | ||
"electron-v32.0.1-linux-armv7l.zip": "fb28562242c38dac9ec2c7d3bc24993482174662d78820d2bffeb1cf8e72b7a7", | ||
"electron-v32.0.1-linux-x64-debug.zip": "3946bc6ee08bc0aeef87cc156ec5d454c2018d1cd85a9fefaddf7e5c4c995124", | ||
"electron-v32.0.1-linux-x64-symbols.zip": "d76ba18860e7ea618c7a691090bf611c9d29f67e79c0bdd22f9f9f238944b7d7", | ||
"electron-v32.0.1-linux-x64.zip": "97d91b496a5eb6faf617d754fe6d6cdae29bf5684463c2b1b3a8c9b106977b85", | ||
"electron-v32.0.1-mas-arm64-dsym-snapshot.zip": "bd5aa83d17fe4db2618d9adbae5e1d4afd9078b986ac8cce88dd00699a9c54b3", | ||
"electron-v32.0.1-mas-arm64-dsym.zip": "f118d42739cad33872aa670058fc49d6c106f5040449c4caee1cc17a666f3a93", | ||
"electron-v32.0.1-mas-arm64-symbols.zip": "35f1b5b23feb21c8f75b97cb396897c79d710190f9af42dfe0be018cb1cbe960", | ||
"electron-v32.0.1-mas-arm64.zip": "994a5c12ce2a4bb35a14b8be368c38f113a8cf1fe306efffd7ff52701a9fec5b", | ||
"electron-v32.0.1-mas-x64-dsym-snapshot.zip": "c75f27b7e558e6f8074f1ab0e1f7e3f52ea22cf3e78e5ea5759c2e24d005dbd5", | ||
"electron-v32.0.1-mas-x64-dsym.zip": "9cab61b9586c6456f0c632e517c31c5c71f76719aaa8854c77c02dbd6dfb7bc7", | ||
"electron-v32.0.1-mas-x64-symbols.zip": "c9bed90f7766e48d3e8f2c4dc8dc5b08c3266ebfe31df4141f191fcd285bfb20", | ||
"electron-v32.0.1-mas-x64.zip": "15a2b71e2477fb96caa580b42ae900cff1a74f538d68135ac66e68f1580a89a0", | ||
"electron-v32.0.1-win32-arm64-pdb.zip": "cf50ba6ee929dd8ca3e567f338d5cc437745ef69fcca20ac051b3a4aa1fa26f0", | ||
"electron-v32.0.1-win32-arm64-symbols.zip": "013db571b332e23894d236ef70b17f194cdae9f0165e0be006b2b262d806f092", | ||
"electron-v32.0.1-win32-arm64-toolchain-profile.zip": "7351fa5cb892853a7d4b67d8858d0f9cc6506c554a2e42c9ad7e8d5e29ae2743", | ||
"electron-v32.0.1-win32-arm64.zip": "a2d7ea265f7840ebda67b08906147055d16ab1ae581958c049f55ae35188ea38", | ||
"electron-v32.0.1-win32-ia32-pdb.zip": "316e2f11dc494f1d0306b9294146c47ac0f206f2d39eb520cbb9b5b1402f82be", | ||
"electron-v32.0.1-win32-ia32-symbols.zip": "32002b7e23ef3d36cec1855800ee74c4a6bca46a44c3490116a313c835ca81b1", | ||
"electron-v32.0.1-win32-ia32-toolchain-profile.zip": "7351fa5cb892853a7d4b67d8858d0f9cc6506c554a2e42c9ad7e8d5e29ae2743", | ||
"electron-v32.0.1-win32-ia32.zip": "bb204179ed41c2f39fd0fe4accd6350e53c810c11e82c360813ce5260d7fac8c", | ||
"electron-v32.0.1-win32-x64-pdb.zip": "89a2c2c057d4a073164e5b0047f6a8c4ebc679f21a9ac6f9b03e4d22739b7e7a", | ||
"electron-v32.0.1-win32-x64-symbols.zip": "26e7fcf5244e7bdd6d0992534d23ce37ad54bc19e5ce037486af3a5cfcbf3f65", | ||
"electron-v32.0.1-win32-x64-toolchain-profile.zip": "7351fa5cb892853a7d4b67d8858d0f9cc6506c554a2e42c9ad7e8d5e29ae2743", | ||
"electron-v32.0.1-win32-x64.zip": "9153c1d72658472db6b34f094c190178099ebdfb02d6c82caf42010820580a52", | ||
"electron.d.ts": "b31efbf25b27bea7d85dbddcf50166efce223e209d6f842a761d27018bdffb92", | ||
"ffmpeg-v32.0.1-darwin-arm64.zip": "da9aae5322bd4f1aae5d5feefc4756c05aa8deda6f82a80b88701e1bdafb6a57", | ||
"ffmpeg-v32.0.1-darwin-x64.zip": "f0e6e4b5bcb2aa2a3aa801636a0536ebad8cef322bbf3147cce9118c567e85b6", | ||
"ffmpeg-v32.0.1-linux-arm64.zip": "9b7c1a7618a50b77220cfbf8db3dfe558c896e6c3984e96b8b6cd19955d8e7d8", | ||
"ffmpeg-v32.0.1-linux-armv7l.zip": "f4283c971ccb6251123841413ba501bfc65bd7b908f9cb3487f3634be6471b27", | ||
"ffmpeg-v32.0.1-linux-x64.zip": "4865234142e0b07e72f1fc68aeb4b3614937d8cc83029316e8f3960b8d71790f", | ||
"ffmpeg-v32.0.1-mas-arm64.zip": "da9aae5322bd4f1aae5d5feefc4756c05aa8deda6f82a80b88701e1bdafb6a57", | ||
"ffmpeg-v32.0.1-mas-x64.zip": "f0e6e4b5bcb2aa2a3aa801636a0536ebad8cef322bbf3147cce9118c567e85b6", | ||
"ffmpeg-v32.0.1-win32-arm64.zip": "c0adc5a146d7d766a83c8b0b4b88e7106728391ad3ad1c852d4d15ec91c4ee47", | ||
"ffmpeg-v32.0.1-win32-ia32.zip": "5dbe24c9e11ce61274badbe12a27e9913c8fb010c7f6d60d77d7ef6fc8d8cb96", | ||
"ffmpeg-v32.0.1-win32-x64.zip": "96d55a91ecac39b9034fa115472a98424ae07eea620b822717156f6673b6f0fd", | ||
"hunspell_dictionaries.zip": "4ddd9ac99a5c0ec327329cd866e568a6a0d87574c8869583f4f63d6358dceb50", | ||
"libcxx-objects-v32.0.1-linux-arm64.zip": "ee73614839b16dd759bdbe6051889d041f893e3b29ecbc95cee3b773370a8745", | ||
"libcxx-objects-v32.0.1-linux-armv7l.zip": "55fd68d83766220a17068de9c028877fdd32a354493e3147a9543885539d499c", | ||
"libcxx-objects-v32.0.1-linux-x64.zip": "d1d5c5bf950ecdf0030a9dbe92feea51239e14023a7efa1eb36ae88dce69e6f3", | ||
"libcxx_headers.zip": "45f263e7401e8b036fed9675720a012d925cfd12a0023217fb34edd3073921ca", | ||
"libcxxabi_headers.zip": "730ccf546c71408ac92f66b143e30cf7987aee1db1ad5a36a204217dd44ae7de", | ||
"mksnapshot-v32.0.1-darwin-arm64.zip": "03f31b525f92a0c6865960fa51820d8b8e71586d1a5137abac231f4ce528e9f3", | ||
"mksnapshot-v32.0.1-darwin-x64.zip": "46dc4ccc6d43192d45cabde46fcb02de9b5edcdbaf3ec4694f5d01e6d1b6d54c", | ||
"mksnapshot-v32.0.1-linux-arm64-x64.zip": "d06d50a4e03f7aad7935c69ea6d3679f542d5722534b6645ff5af232389aadc0", | ||
"mksnapshot-v32.0.1-linux-armv7l-x64.zip": "af5496c28707be16c3d6e1295ae44397d6420e3644016c7ef5469e96be2c0d4a", | ||
"mksnapshot-v32.0.1-linux-x64.zip": "2eda6c0cb5dfe11ee778dc0e2038491b1066326b0aac9fc25f9d07e31a82832f", | ||
"mksnapshot-v32.0.1-mas-arm64.zip": "42ead07fa0a3b264de03c2a34eae9b588f3e3895939c7c954f05239d8f72fddc", | ||
"mksnapshot-v32.0.1-mas-x64.zip": "c6e6fb2c5d0ff06b36eeb7e5401932da507ee934d429d1487148e8e2c55fff1d", | ||
"mksnapshot-v32.0.1-win32-arm64-x64.zip": "f0464f335d64190494446dd8463a6383eddc3aa279d47caee914ddd6957af0f4", | ||
"mksnapshot-v32.0.1-win32-ia32.zip": "e677f10a7bce61bac05575bdfe387e7501e88c2d342120674f12d7945315fa11", | ||
"mksnapshot-v32.0.1-win32-x64.zip": "58a344560c8614912efd426bc7369ab0f9f50e69f3f665b5a0c548028ad95d47" | ||
} |
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.