Skip to content

Commit

Permalink
GITBOOK-180: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored and gitbook-bot committed Jul 4, 2024
1 parent 62e0495 commit 6dae504
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
10 changes: 5 additions & 5 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* [Importing an Existing Project](import-existing-project.md)
* [CLI](cli.md)

## Core Concepts

* [Why Electron Forge](core-concepts/why-electron-forge.md)
* [Build Lifecycle](core-concepts/build-lifecycle.md)

## Configuration <a href="#config" id="config"></a>

* [Overview](config/configuration.md)
Expand Down Expand Up @@ -35,11 +40,6 @@
* [Snapcraft](config/publishers/snapcraft.md)
* [Hooks](config/hooks.md)

## Core Concepts

* [Why Electron Forge](core-concepts/why-electron-forge.md)
* [Build Lifecycle](core-concepts/build-lifecycle.md)

## Built-in Templates <a href="#templates" id="templates"></a>

* [Vite](templates/vite.md)
Expand Down
13 changes: 11 additions & 2 deletions core-concepts/build-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ description: How Forge takes your app code from development to distribution.

Once your app is ready to be released, Electron Forge can handle the rest to make sure it gets into your users' hands. The complete build flow for Electron Forge can be broken down into three smaller steps:

<figure><img src="../.gitbook/assets/Untitled-2022-08-26-1442 (2).png" alt="Flowchart showing the Electron Forge build flow. Starting with a &#x22;development Electron app&#x22;, the first step is &#x22;Package&#x22;. Package has an output of &#x22;executable app bundle&#x22; and flows into the &#x22;Make&#x22; step. Make has an output of &#x22;installers or archives&#x22; and flows into the &#x22;Publish&#x22; step. Publish has an output of &#x22;uploaded to cloud storage for distribution&#x22;. Each step depends on the previous one."><figcaption><p>Forge's build flow</p></figcaption></figure>

Each one of these steps is a separate command exposed through Forge's `electron-forge` command line interface, and is usually mapped to a script in your package.json file.

{% hint style="info" %}
Expand All @@ -16,6 +14,17 @@ Each one of these steps is a separate command exposed through Forge's `electron-
Running each of these tasks will also run the previous ones in the sequence (i.e. running the `electron-forge publish` script will first run `package` and `make` as prerequisite steps).
{% endhint %}

```mermaid fullWidth="false"
graph TB
dev["fa:fa-code development Electron project"] -.-> package
publish -.-> cloud
subgraph forge["fa:fa-hammer Electron Forge"]
package["fa:fa-box Package"] -->|executable app bundle| make
make["fa:fa-compact-disc Make"] -->|platform installers| publish["fa:fa-upload Publish"]
end
cloud["fa:fa-cloud Uploaded to cloud object storage"]
```

## Step 1: Package

{% hint style="info" %}
Expand Down

0 comments on commit 6dae504

Please sign in to comment.