SOLFIND
Web Lens
Portal home

Build cross-platform desktop apps with JavaScript, HTML, and CSS | Electron

https://www.electronjs.org/zh/ • 49 KB fetched
Open original page


Build cross-platform desktop apps with JavaScript, HTML, and CSS | Electron 跳转到主内容 Electron 文档 应用开发接口(API) 博客 工具 * Electron Forge * Electron Fiddle 社区 * 治理 * 案例展示 * 资源 版本发布 中文 * English * Deutsch * Español * Français * 日本語 * Português * Русский * 中文 搜索 Build cross-platform desktop apps with JavaScript, HTML, and CSS Get Started → Why Electron? Powered by the web Electron embeds Chromium and Node.js to bring JavaScript to the desktop. Cross-platform Electron apps run natively on macOS, Windows, and Linux across all supported architectures. Open to all Electron is an open-source project under the OpenJS Foundation maintained by an active community of contributors. Stable Electron's bundled Chromium build ensures that your app has a stable rendering target with all the newest web platform features. Secure Electron releases major versions in lockstep with Chromium so you get security fixes as soon as they are available. Extensible Use any package from the rich npm ecosystem, or write your own native add-on code to extend Electron. Trusted by best-in-class apps Popular consumer and rock-solid enterprise apps use Electron to power their desktop experiences. Desktop development made easy Electron takes care of the hard parts so you can focus on the core of your application. Native graphical user interfaces Interact with your operating system's interfaces with Electron's main process APIs. Customize your application window appearance, control application menus , or alert users through dialogs or notifications . Automatic software updates Send out software updates to your macOS and Windows users whenever you release a new version with Electron's autoUpdater module , powered by Squirrel . Application installers Use community-supported tooling to generate platform-specific tooling like Apple Disk Image (.dmg) on macOS, Windows Installer (.msi) on Windows, or RPM Package Manager (.rpm) on Linux. App store distribution Distribute your application to more users. Electron has first-class support for the Mac App Store (macOS), the Microsoft Store (Windows), or the Snap Store (Linux). Crash reporting Automatically collect JavaScript and native crash data from your users with the crashReporter module. Use a third-party service to collect this data or set up your own on-premise Crashpad server. Use the tools you love With the power of modern Chromium, Electron gives you an unopinionated blank slate to build your app. Choose to integrate your favourite libraries and frameworks from the front-end ecosystem, or carve your own path with bespoke HTML code. React Vue.js Next.js Tailwind CSS Bootstrap Three.js Angular TypeScript webpack Playwright Testing Library Sass Electron Forge Electron Forge is a batteries-included toolkit for building and publishing Electron apps. Get your Electron app started the right way with first-class support for JavaScript bundling and an extensible module ecosystem. Get started Source code $ npm init electron-app@latest my-app ✔ Locating custom template: "base" ✔ Initializing directory ✔ Preparing template ✔ Initializing template ✔ Installing template dependencies Direct download Installation If you want to figure things out for yourself, you can install the Electron package directly from the npm registry. For a production-ready experience, install the latest stable version. If you want something a bit more experimental, try the prerelease or nightly channels. * Stable * Prerelease * Nightly $ npm install --save-dev electron@latest # Electron 43.4.0 # Node 24.18.1 # Chromium 150.0.7871.224 Experiment with the API Electron Fiddle Electron Fiddle lets you create and play with small Electron experiments. It greets you with a quick-start template after opening — change a few things, choose the version of Electron you want to run it with, and play around. Save your Fiddle either as a GitHub Gist or to a local folder. Once pushed to GitHub, anyone can quickly try your Fiddle out by just entering it in the address bar. Download Source code Apps users love, built with Electron Thousands of organizations spanning all industries use Electron to build cross-platform software. 1Password Asana Claude Discord Dropbox Figma Loom GitHub Desktop itch MongoDB Compass Notion Obsidian OOMOL Studio Polypane Postman Signal Slack Splice Screen Studio Trello Twitch VS Code See more 文档 * 入门指南 * API 参考 清单 * 性能 * 安全 工具 * Electron Forge * Electron Fiddle 社区 * 治理 * 资源 * Discord * Bluesky * X * Mastodon * Stack Overflow 更多 * GitHub * Open Collective * 基础看板 版权所有 OpenJS Foundation 及 Electron 贡献者。保留所有权利。 OpenJS Foundation 已注册商标并使用商标。如需查看 OpenJS Foundation 的商标列表,请参阅我们的 商标政策 和 商标列表 。未在 OpenJS Foundation 商标列表 中标明的商标和标志,均为其各自持有者的商标™或注册商标®。使用它们并不意味着与它们有任何关联或得到它们的认可。 OpenJS Foundation | 使用条款 | 隐私政策 | 章程 | 行为准则 | 商标政策 | 商标列表 | Cookie 政策 Hosting and infrastructure graciously provided by

Links found on this page

  1. 跳转到主内容 [direct]
  2. 文档 [direct]
  3. 应用开发接口(API) [direct]
  4. 博客 [direct]
  5. Electron Forge [direct]
  6. Electron Fiddle [direct]
  7. 治理 [direct]
  8. 案例展示 [direct]
  9. 资源 [direct]
  10. 版本发布 [direct]
  11. English [direct]
  12. Deutsch [direct]
  13. Español [direct]
  14. Français [direct]
  15. 日本語 [direct]
  16. Português [direct]
  17. Русский [direct]
  18. Why Electron? [direct]
  19. OpenJS Foundation [direct]
  20. npm [direct]
  21. native add-on code [direct]
  22. application window [direct]
  23. menus [direct]
  24. dialogs [direct]
  25. notifications [direct]
  26. autoUpdater module [direct]
  27. Squirrel [direct]
  28. community-supported tooling [direct]
  29. Mac App Store [direct]
  30. Microsoft Store [direct]
  31. Snap Store [direct]
  32. crashReporter [direct]
  33. Source code [direct]
  34. Source code [direct]
  35. 1Password [direct]
  36. Asana [direct]
  37. Claude [direct]
  38. Discord [direct]
  39. Dropbox [direct]
  40. Figma [direct]
  41. Loom [direct]
  42. GitHub Desktop [direct]
  43. itch [direct]
  44. MongoDB Compass [direct]
  45. Notion [direct]
  46. Obsidian [direct]
  47. OOMOL Studio [direct]
  48. Polypane [direct]
  49. Postman [direct]
  50. Signal [direct]
  51. Slack [direct]
  52. Splice [direct]
  53. Screen Studio [direct]
  54. Trello [direct]
  55. Twitch [direct]
  56. VS Code [direct]
  57. 性能 [direct]
  58. 安全 [direct]
  59. Discord [direct]
  60. Bluesky [direct]
  61. X [direct]
  62. Mastodon [direct]
  63. Stack Overflow [direct]
  64. GitHub [direct]
  65. Open Collective [direct]
  66. 基础看板 [direct]
  67. 商标政策 [direct]
  68. 商标列表 [direct]
  69. 使用条款 [direct]
  70. 隐私政策 [direct]
  71. 章程 [direct]
  72. 行为准则 [direct]
  73. Cookie 政策 [direct]