-
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 3c4051f
Showing
8 changed files
with
24,425 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 (Big Sur and up): Electron provides 64-bit Intel and Apple Silicon / ARM binaries for macOS. | ||
* 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-v33.2.1-darwin-arm64.zip": "68faefdaece4baee45b9531ee59e612eba9b2f59c74da4310cda053abb6384eb", | ||
"chromedriver-v33.2.1-darwin-x64.zip": "8b2536c638f97972128a314261e7933cbd25890f6324227128fef10a8a49f933", | ||
"chromedriver-v33.2.1-linux-arm64.zip": "2a80800b9b4d26da2ed4210ee50058c31a892fbcd2c8e3472c600fbe35194f18", | ||
"chromedriver-v33.2.1-linux-armv7l.zip": "ec05e8f60a85cb3c32b0b179302ef23c7af6e6659cc8ec1b2f8b4922ca1b27f4", | ||
"chromedriver-v33.2.1-linux-x64.zip": "cdad64d3fc051755cce6f07958946010378fa1a77a779aca94e004facaa38513", | ||
"chromedriver-v33.2.1-mas-arm64.zip": "e4ed7677c8e7a19a06672cf9c333d4fd5433b50d412a7eef149b1c713bc528f4", | ||
"chromedriver-v33.2.1-mas-x64.zip": "6aa47515a794f81925276bc2590c0c3ea62031703c0a5c56d5063cc00176bf4f", | ||
"chromedriver-v33.2.1-win32-arm64.zip": "b95b993982b77a4e57dde996bf325aa5be5de351319ed8508952295920d8dd0c", | ||
"chromedriver-v33.2.1-win32-ia32.zip": "0d4a29b6ceef37af20139a10326d54919a9c5e7ef9be9f6eb46c9c555f7f7593", | ||
"chromedriver-v33.2.1-win32-x64.zip": "02bb3bc01704f18c5d80336e2c00eb12c94c8c51509af24cf3001b27310e3c0f", | ||
"electron-api.json": "d7a68f11afa85c912927cbf0d46c7a31b3a3f1d87e2a2f1aecc34d73a221ffc7", | ||
"electron-v33.2.1-darwin-arm64-dsym-snapshot.zip": "ba1bad4504325903d069a2e83e75904ce41022f9f1bf9d29f1754685ff8b13f8", | ||
"electron-v33.2.1-darwin-arm64-dsym.zip": "76308402bc58eaeaff41397495403aa4517c684d703b3624f71531ca4e8b2890", | ||
"electron-v33.2.1-darwin-arm64-symbols.zip": "ce2c17dc4898bc0cf299915af07b342bda07c9707f68c7afa6c3db49aeb84f77", | ||
"electron-v33.2.1-darwin-arm64.zip": "15615ce68c1a31b0db186af8607c00a30e3f64e63642aab735b4997d0fab7631", | ||
"electron-v33.2.1-darwin-x64-dsym-snapshot.zip": "f9629c86a337c2be017294032088caa1cb037177867979fd1fd599610be956e8", | ||
"electron-v33.2.1-darwin-x64-dsym.zip": "b07b7f96610db50959e3bbaffa40d9d03de27ce9d9ba2687459c2db46f26b9dd", | ||
"electron-v33.2.1-darwin-x64-symbols.zip": "8b840f53f28563d2755661ff69688076b182b58dd89451adac494252d6486b19", | ||
"electron-v33.2.1-darwin-x64.zip": "d4ba6779efea1034b98d6ad3aef5388c16a4fe2f8938cbeb6a6547ebfe4c7bda", | ||
"electron-v33.2.1-linux-arm64-debug.zip": "ce9e17da95ea8acf635d28dd8e8a604864e0c9f83deed192c9e3c9ccfe72f794", | ||
"electron-v33.2.1-linux-arm64-symbols.zip": "624f46c7ba44e97b55f8363c4960883a7ae7f21cccd3bae428fac147494bac4e", | ||
"electron-v33.2.1-linux-arm64.zip": "61ef1182fcbcaaf0b9036243216747eb9be186491b79aa6576b482212a928d2e", | ||
"electron-v33.2.1-linux-armv7l-debug.zip": "ce9e17da95ea8acf635d28dd8e8a604864e0c9f83deed192c9e3c9ccfe72f794", | ||
"electron-v33.2.1-linux-armv7l-symbols.zip": "cd606ca7581a8caba12f2abf41875bc88ad078b39c9a5ccbb64d4394fe9cb819", | ||
"electron-v33.2.1-linux-armv7l.zip": "2597c7d1f2f0059473548fa58f38d910b1e68bcbc6f0f09e30a798d6c598c4da", | ||
"electron-v33.2.1-linux-x64-debug.zip": "7a319ab57626b116701306787eb65f1a78fae90f0b6ab6af2a29c6b69c4b2f26", | ||
"electron-v33.2.1-linux-x64-symbols.zip": "914afd5627ab97c798e662e0c443b785a6535010e27bf511013c5d7c43b68d34", | ||
"electron-v33.2.1-linux-x64.zip": "3b66a507ece29684a105b0f9609db50c88235333ddad696d01eefebefd4b1aab", | ||
"electron-v33.2.1-mas-arm64-dsym-snapshot.zip": "0266cabca9f251a4659a53032e909e7d46e42c1dc6c8653822d2b07f8012d669", | ||
"electron-v33.2.1-mas-arm64-dsym.zip": "c33761260b62dd52c5bc4de2ae05880197f2c7da9d84046ab066789eaf054861", | ||
"electron-v33.2.1-mas-arm64-symbols.zip": "c320a87d410e9c8f6acffa9a268b3edb5e1a65de6d949382a027b8134a127be6", | ||
"electron-v33.2.1-mas-arm64.zip": "539b3a231ea9724541056abc0874922a03aa861e8447e44b8923ded0cbd0e73a", | ||
"electron-v33.2.1-mas-x64-dsym-snapshot.zip": "178b98d2834ee4a1ccc3e84363389566d3db48755de0cea459f958e52db38611", | ||
"electron-v33.2.1-mas-x64-dsym.zip": "acb7c1c6ec017b21fdc5629b4efd89ad6c0837378df8009286ea5616a17fc647", | ||
"electron-v33.2.1-mas-x64-symbols.zip": "50a999a2315ec6d67d5a22a0d22193d7b6511badc27e40923427cefc9d29df2d", | ||
"electron-v33.2.1-mas-x64.zip": "7eecc4a33a2130e43381458e7315fd84619dd2b349b45577e59448e282219c00", | ||
"electron-v33.2.1-win32-arm64-pdb.zip": "18887b65b8ece65c896c8f3c03635a5c43fa35dc7f6e9ad5d46dd739e5acae5f", | ||
"electron-v33.2.1-win32-arm64-symbols.zip": "60bb693bd8962b8c39c0bac2be2220508b6e9f86cf4b870518e6fced19a4f0af", | ||
"electron-v33.2.1-win32-arm64-toolchain-profile.zip": "48b81d28fdceb4ab3ca27650d79bab910a1a19dbda72271882bfdc877c71975f", | ||
"electron-v33.2.1-win32-arm64.zip": "2baa3980c99da67c1d722901771d6bf755ff0c0971aeac498af89c9075c54305", | ||
"electron-v33.2.1-win32-ia32-pdb.zip": "b2b52db3824276774e488cf2beb19982038a5bfa921dc02538865a6abaa0c0a8", | ||
"electron-v33.2.1-win32-ia32-symbols.zip": "7f2fc9b47d1ebe666e86ab4b9c22c5b4cf6e1d2d32e12e0e81b6b40d29607a17", | ||
"electron-v33.2.1-win32-ia32-toolchain-profile.zip": "48b81d28fdceb4ab3ca27650d79bab910a1a19dbda72271882bfdc877c71975f", | ||
"electron-v33.2.1-win32-ia32.zip": "3d625e4905574f382e7a06eb7c372c59cfb691939e6464e65f54b253057342b4", | ||
"electron-v33.2.1-win32-x64-pdb.zip": "65c13754787e03b69ec54906e19b3503e9400cf291f28b47d213613215d2ed4e", | ||
"electron-v33.2.1-win32-x64-symbols.zip": "5059e0cfdb64b31fcdc805ced4dce32b150e8c27c1219a4182c0201592049632", | ||
"electron-v33.2.1-win32-x64-toolchain-profile.zip": "48b81d28fdceb4ab3ca27650d79bab910a1a19dbda72271882bfdc877c71975f", | ||
"electron-v33.2.1-win32-x64.zip": "c325a6d905c67107e166267813ea2151ae7fd316c0a88de0081db0b9851a9946", | ||
"electron.d.ts": "a16913a0b377429ba16355aa84926482aa252fec7285c01c98559788459ed028", | ||
"ffmpeg-v33.2.1-darwin-arm64.zip": "0e5eeee294b82692a248bf32a2f940b5e3fc041ebb226bd14cfdc98bcb9b7842", | ||
"ffmpeg-v33.2.1-darwin-x64.zip": "c41fc697f33f16f532ccb79679da32a049941b14f06651db4818f443b8ea02fd", | ||
"ffmpeg-v33.2.1-linux-arm64.zip": "c6d1f2423aa485ab101e75f5c7b91ad741208696994e71590a94021a068cfe14", | ||
"ffmpeg-v33.2.1-linux-armv7l.zip": "e8c7501adb23b9e5e2765459804eabee9358208ddf4627aa8c8aff6d87756a9f", | ||
"ffmpeg-v33.2.1-linux-x64.zip": "4d41fa60da7b0f5bea8836352cb597d9a42254d51e964d73b747d7336c1e39e3", | ||
"ffmpeg-v33.2.1-mas-arm64.zip": "6241fc9158261e186a52201e804d4be087b1534eb22ce3a057f28be1ea652f3d", | ||
"ffmpeg-v33.2.1-mas-x64.zip": "52114338d8627d50d35d8d3a8aedfdd95d6ed93fe71b3d8a6ba9bec71784be75", | ||
"ffmpeg-v33.2.1-win32-arm64.zip": "bc0be3dcc6e28b8b55dec9adf6cc72465f8d4f62e0483ca13baadc8bf1a7fc4c", | ||
"ffmpeg-v33.2.1-win32-ia32.zip": "69e3d1dd04c5dd78e0f545f40e8ee3ce18e1a0351d7f2ef5a43c50e8702d2fef", | ||
"ffmpeg-v33.2.1-win32-x64.zip": "65ea2f72ea4b2f352f55d724ce16117ecebfdede1ebbf586799326b0cd7b44a2", | ||
"hunspell_dictionaries.zip": "5674ecd710af1471fa2f9f24b586b2ea6b834d437de2bb5af9e788c0ce29074e", | ||
"libcxx-objects-v33.2.1-linux-arm64.zip": "bce2cb74c2efff807b45bf0393f543af29b98674c66cfca6fde84ef2d5bb8972", | ||
"libcxx-objects-v33.2.1-linux-armv7l.zip": "13f3f928280f5be08cb3869a5a1d05d06f6b91ce296d8798b385231f279425a2", | ||
"libcxx-objects-v33.2.1-linux-x64.zip": "da6c33d19dd93cc327ad0389d67991f5a5e0bc9988b3551d74a5f563b02c0263", | ||
"libcxx_headers.zip": "6f7e9d4719ce6380fd7daef8966d07720b8bc9384db1d86832982b7d83824706", | ||
"libcxxabi_headers.zip": "153994318f1bb933bb26c5b8f02294da9baa586affd7f3e6ddcc363d1b363722", | ||
"mksnapshot-v33.2.1-darwin-arm64.zip": "7abbedcc8f657fc8969d20e0cc94e123a250d19473814e7f860918cc93b1cc60", | ||
"mksnapshot-v33.2.1-darwin-x64.zip": "987192f765c94e7b4dc4b8c63d5a71c7eb35dd79083834704dd267b3e61c66fb", | ||
"mksnapshot-v33.2.1-linux-arm64-x64.zip": "e34505f92d9f507f5ba986a62f0d825a0871742e7e66d0d74bdd9d0e645109a7", | ||
"mksnapshot-v33.2.1-linux-armv7l-x64.zip": "d35c48ca7c18b907d91ad70be6316b5b5d73304f7792c6b127af9b979567591e", | ||
"mksnapshot-v33.2.1-linux-x64.zip": "05b5060189ac523f2be8cd364a11baf6cb1c6e81d3190a85437d114d17c1f2cb", | ||
"mksnapshot-v33.2.1-mas-arm64.zip": "575297e4477557d497e21da85ab4c56e3dcda04558aeb22ed988683425852001", | ||
"mksnapshot-v33.2.1-mas-x64.zip": "dba2819485fdca84dd27e80d58e10d5438e52ddd00747cbbedab70f78db95a19", | ||
"mksnapshot-v33.2.1-win32-arm64-x64.zip": "311a703fe5b7d881fc9919f4fce05716bc1d0168eef842f8b4e192597eb55ac8", | ||
"mksnapshot-v33.2.1-win32-ia32.zip": "63bc01285adb369bd3fcd984346bc5d18996887f972856d31d04847194f4a700", | ||
"mksnapshot-v33.2.1-win32-x64.zip": "e1603880565155ea009c592d28a3d6bf82e199631c3bae48b53ce0f422333b21" | ||
} |
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 proc = require('child_process'); | ||
|
||
const electron = require('./'); | ||
|
||
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.