Electron Forge

用于创建、发布和安装现代Electron应用程序的完整工具。(A complete tool for creating, publishing, and installing modern Electron applications.)

Github stars Tracking Chart

Electron Forge

用于构建现代 Electron 应用的完整工具。

Electron Forge 将现有(并且维护良好)的 Electron 开发构建工具统一到一个简单易用的软件包中,这样任何人都可以直接进入 Electron 开发。


网站 | 目标 | 用法 | 配置 | 支持 | 投稿 | 变更记录

入门

注意:Electron Forge 需要 Node 6 或更高版本,并且安装了 git。

npm install -g @electron-forge/cli@beta
electron-forge init my-new-app
cd my-new-app
npm start

或者,如果您有更新版本的 npm 或 yarn,则可以使用 npx , 要么 yarn create

npx @electron-forge/cli@beta init my-new-app
# or
yarn create electron-app my-new-app
# then
cd my-new-app
npm start

项目目标

  1. 从 Electron 开始应该像单个命令一样简单。
  2. 开发人员不必担心设置构建工具,本机模块重建等。一切都应该“开箱即用”。
  3. 从创建项目到打包发布项目,应该以标准方式处理一个核心依赖,同时仍然为用户提供最大的选择和自由。

考虑到这些目标,本项目使用的内容包括:

  • electron-compile : 根据正确的 Electron 版本自动重新编译本机 Node.js 模块。
  • Electron Packager:自定义并捆绑您的 Electron 应用程序,以便为分发做好准备。

文档和用法

有关 Electron Forge 文档和用法,请访问我们的网站:electronforge.io

Overview

Name With Ownerelectron/forge
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 6)
PlatformLinux, Mac, Windows
License:MIT License
Release Count165
Last Release Namev7.4.0 (Posted on 2024-04-11 15:01:20)
First Release Namev0.0.1 (Posted on 2016-10-06 02:08:58)
Created At2016-10-05 14:51:53
Pushed At2024-05-04 19:06:44
Last Commit At
Stargazers Count6.3k
Watchers Count79
Fork Count484
Commits Count3.1k
Has Issues Enabled
Issues Count1328
Issue Open Count222
Pull Requests Count1420
Pull Requests Open Count25
Pull Requests Close Count802
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Electron Forge

Build Status
Discord
npm version
license
status

A complete tool for building modern Electron applications.

Electron Forge unifies the existing (and well maintained) build tools for
Electron development into a simple, easy to use package so that anyone can
jump right in to Electron development.


Website |
Goals |
Docs and Usage |
Configuration |
Support |
Contributing |
Changelog


Note: The major version bump between v5.0.0 and v6.0.0 contains major breaking API changes and improvements. If you are new to Forge, we highly recommend using the latest version. If using an older version of Forge, we recommend upgrading to v6.0.0 or later.


Getting Started

Pre-requisities:

  • Node 14.17.5 or higher
  • Git

If you have a more recent version of npm or yarn, you can use
npx,
or
yarn create.

npx create-electron-app my-new-app
# or
yarn create electron-app my-new-app

# then
cd my-new-app
npm start

Alternatively (less recommended):

npm install -g @electron-forge/cli
electron-forge init my-new-app
cd my-new-app
npm start

For more information on creating a new project from a template, see our CLI documentation.

Docs and Usage

For Electron Forge documentation and usage you should check out our website:
electronforge.io

Project Goals

  1. Starting with Electron should be as simple as a single command.
  2. Developers shouldn't have to worry about setting up build tooling,
    native module rebuilding, etc. Everything should "just work" for them out
    of the box.
  3. Everything from creating the project to packaging the project for release
    should be handled by one core dependency in a standard way while still offering
    users maximum choice and freedom.

With these goals in mind, under the hood this project uses, among others:

  • @electron/rebuild:
    Automatically recompiles native Node.js modules against the correct
    Electron version.
  • Electron Packager:
    Customizes and bundles your Electron app to get it ready for distribution.

Contributing

If you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.

Community

Please report bugs or feature requests in our issue tracker.
You can find help for debugging your Electron Forge on the Support page, and ask questions in the official Electron Discord server, where there is a dedicated channel for Electron Forge.

To the top