2021-09-12 20:44:30 +03:00
## Electron Forge
2023-06-06 01:37:12 +03:00
[![CircleCI ](https://dl.circleci.com/status-badge/img/gh/electron/forge/tree/main.svg?style=shield )](https://dl.circleci.com/status-badge/redirect/gh/electron/forge/tree/main)
2021-11-30 03:48:29 +03:00
[![Discord ](https://img.shields.io/discord/745037351163527189?color=blueviolet&logo=discord )](https://discord.com/invite/APGC3k5yaH)
2021-03-10 05:28:01 +03:00
[![npm version ](https://img.shields.io/npm/v/@electron-forge/cli )](https://npm.im/@electron-forge/cli)
2022-10-27 23:56:33 +03:00
[![license ](https://img.shields.io/github/license/electron/forge.svg )](https://github.com/electron/forge/blob/main/LICENSE)
2018-04-30 12:36:53 +03:00
![status ](https://img.shields.io/badge/Status-%20Ready%20for%20Awesome-red.svg )
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.
2021-09-12 20:44:30 +03:00
---
2018-04-30 12:36:53 +03:00
2019-06-10 17:58:58 +03:00
[Website ](https://www.electronforge.io ) |
2018-04-30 12:36:53 +03:00
[Goals ](#project-goals ) |
2019-03-24 23:51:14 +03:00
[Docs and Usage ](#docs-and-usage ) |
2019-06-10 17:58:58 +03:00
[Configuration ](https://www.electronforge.io/configuration ) |
2022-10-27 23:56:33 +03:00
[Support ](https://github.com/electron/forge/blob/main/SUPPORT.md ) |
[Contributing ](https://github.com/electron/forge/blob/main/CONTRIBUTING.md ) |
[Changelog ](https://github.com/electron/forge/blob/main/CHANGELOG.md )
2018-04-30 12:36:53 +03:00
2022-10-31 23:02:09 +03:00
---
2018-04-30 12:36:53 +03:00
# Getting Started
2023-10-20 21:34:59 +03:00
Pre-requisites:
2022-10-31 23:02:09 +03:00
2023-11-04 00:19:42 +03:00
- Node 16.4.0 or higher
2022-10-31 23:02:09 +03:00
- Git
2018-04-30 12:36:53 +03:00
2019-07-16 18:13:59 +03:00
If you have a more recent version of `npm` or `yarn` , you can use
2018-04-30 12:36:53 +03:00
[`npx` ](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b ),
or
[`yarn create` ](https://yarnpkg.com/blog/2017/05/12/introducing-yarn/ ).
```bash
2019-05-24 04:03:39 +03:00
npx create-electron-app my-new-app
2018-04-30 12:36:53 +03:00
# or
yarn create electron-app my-new-app
# then
cd my-new-app
npm start
```
2022-10-31 23:02:09 +03:00
For more information on creating a new project from a template, [see our CLI documentation ](https://www.electronforge.io/cli ).
# Docs and Usage
For Electron Forge documentation and usage you should check out our website:
[electronforge.io ](https://www.electronforge.io )
2018-04-30 12:36:53 +03:00
# Project Goals
1. Starting with Electron should be as simple as a single command.
2018-04-30 17:49:39 +03:00
2. Developers shouldn't have to worry about setting up build tooling,
2021-09-12 20:44:30 +03:00
native module rebuilding, etc. Everything should "just work" for them out
2018-04-30 12:36:53 +03:00
of the box.
3. Everything from creating the project to packaging the project for release
2018-04-30 17:49:39 +03:00
should be handled by one core dependency in a standard way while still offering
2018-04-30 12:36:53 +03:00
users maximum choice and freedom.
With these goals in mind, under the hood this project uses, among others:
2022-11-01 00:49:51 +03:00
- [`@electron/rebuild` ](https://github.com/electron/rebuild ):
2018-04-30 12:36:53 +03:00
Automatically recompiles native Node.js modules against the correct
Electron version.
2023-11-16 01:52:47 +03:00
- [`@electron/packager` ](https://github.com/electron/packager ):
2018-04-30 12:36:53 +03:00
Customizes and bundles your Electron app to get it ready for distribution.
2022-10-31 23:02:09 +03:00
## Contributing
2018-04-30 12:36:53 +03:00
2022-10-31 23:02:09 +03:00
If you are interested in reporting/fixing issues and contributing directly to the code base, please see [CONTRIBUTING.md ](https://github.com/electron/forge/blob/main/CONTRIBUTING.md ) for more information on what we're looking for and how to get started.
2018-11-17 11:04:41 +03:00
2022-10-31 23:02:09 +03:00
## Community
2018-04-30 12:36:53 +03:00
2022-10-31 23:02:09 +03:00
Please report bugs or feature requests in our [issue tracker ](https://github.com/electron/forge/issues ).
You can find help for debugging your Electron Forge on the [Support page ](https://github.com/electron/forge/blob/main/SUPPORT.md ), and ask questions in the [official Electron Discord server ](https://discord.gg/invite/APGC3k5yaH ), where there is a dedicated channel for Electron Forge.