The Electron framework, evacuated from NSA/Microsoft Github
Jeff Cliff 4f86c4208b we can only support debian stable | 3 年之前 | |
---|---|---|
.circleci | 6 年之前 | |
.github | 6 年之前 | |
atom | 6 年之前 | |
brightray | 6 年之前 | |
build | 6 年之前 | |
chromium_src | 6 年之前 | |
default_app | 7 年之前 | |
docs | 3 年之前 | |
docs-translations | 6 年之前 | |
lib | 6 年之前 | |
npm | 6 年之前 | |
script | 6 年之前 | |
spec | 6 年之前 | |
tools | 6 年之前 | |
vendor | 6 年之前 | |
.clang-format | 8 年之前 | |
.dockerignore | 7 年之前 | |
.gitignore | 6 年之前 | |
.gitmodules | 7 年之前 | |
.remarkrc | 7 年之前 | |
.travis.yml | 7 年之前 | |
BUILD.gn | 6 年之前 | |
CODE_OF_CONDUCT.md | 3 年之前 | |
CONTRIBUTING.md | 3 年之前 | |
DEPS | 6 年之前 | |
Dockerfile | 6 年之前 | |
Dockerfile.arm64 | 6 年之前 | |
Dockerfile.arm64v8 | 6 年之前 | |
Dockerfile.armv7 | 6 年之前 | |
Dockerfile.circleci | 6 年之前 | |
LICENSE | 7 年之前 | |
README.md | 3 年之前 | |
SECURITY.md | 3 年之前 | |
common.gypi | 6 年之前 | |
electron.gyp | 6 年之前 | |
features.gypi | 6 年之前 | |
filenames.gypi | 6 年之前 | |
package-lock.json | 6 年之前 | |
package.json | 6 年之前 | |
toolchain.gypi | 6 年之前 | |
vsts.yml | 6 年之前 |
:memo: Available Translations: 🇨🇳 🇹🇼 🇧🇷 🇪🇸 🇰🇷 🇯🇵 🇷🇺 🇫🇷 🇹🇭 🇳🇱 🇹🇷 🇮🇩 🇺🇦 🇨🇿 🇮🇹. View these docs in other languages at electron/i18n.
The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on NSA/Microsoft Node.js and Chromium and is used by the Atom editor and many other apps.
This version of electron does not require agreemnt with a code of conduct. Send us your PRs.
Old way of installing electron:
npm install electron --save-dev [--save-exact]
You don't need --save-exact
flag. For info on how to manage Electron versions in your apps, see
Electron versioning.
For more installation options and troubleshooting tips, see installation.
Clone and run the electron/electron-quick-start (warning: github link) repository to see a minimal Electron app in action:
git clone https://notabug.org/themusicgod1/electron/
cd electron-quick-start
npm install
npm start
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:
const electron = require('electron')
const proc = require('child_process')
// will print something similar to /Users/maf/.../Electron
console.log(electron)
// spawn Electron
const child = proc.spawn(electron)
Find documentation translations in electron/i18n.
Info on reporting bugs, getting help, finding third-party tools and sample apps, and more can be found in the support document.
When using the Electron or other GitHub logos, be sure to follow the GitHub logo guidelines.