# Publishing

To publish an Editor project, you make a **build**: a snapshot of the scenes you choose, packaged with everything they need to run on their own. Changes you make in the Editor afterwards don't affect a build until you make a new one.

You can make two kinds of build:

- **Publish** a build to [PlayCanvas Hosting](https://developer.playcanvas.com/user-manual/editor/publishing/playcanvas-hosting.md), which gives it a playcanv.as link that you can share with anyone. There's nothing to set up.
- **Download** a build to [host it yourself](https://developer.playcanvas.com/user-manual/editor/publishing/downloading.md), or to take it to any of the other destinations in [Publishing](https://developer.playcanvas.com/user-manual/publishing.md), such as game platforms, app stores and desktop apps.

## The Builds Panel

To open the Builds panel, select the **Publish / Download** button in the [toolbar](https://developer.playcanvas.com/user-manual/editor/interface/toolbar.md).

[Image: The Builds panel]

- **Primary build** shows the build that your project's link plays, once you've published one.
- **Publish** and **Download** open the form for a new build.
- **Build history** lists your published and downloaded builds, with filters for their type, format, status, branch and the person who made them. Select a build to see its details, or select its **...** button to view it, delete it, or make it the primary build.

## Making a Build

Publishing and downloading use the same form:

1. Under **Build details**, give the build a **Title**. When you publish, you can also add an image and a **Description**, which show when you share the build's link, and a **Version** and **Release Notes** to help you tell builds apart.
2. Under **Build settings**, choose the **Engine Version** and the [build options](https://developer.playcanvas.com/user-manual/editor/publishing.md#build-options). When you download, also choose the [download format](https://developer.playcanvas.com/user-manual/editor/publishing/downloading.md#download-formats).
3. Under **Scenes**, select the scenes to include. The **primary scene** is the one that loads when the build starts. To change it, select the icon next to another scene.
4. Select **Publish** or **Download** at the bottom of the form.

The build appears in **Build history** while it's being made, and is ready when its status shows a check mark.

## Build Options

| Option | What it does |
| --- | --- |
| **Concatenate Scripts** | Combines your scripts into fewer files, which load faster. Classic scripts are combined into one file, and ESM Scripts are bundled with the engine. See [how scripts are processed when publishing](https://developer.playcanvas.com/user-manual/editor/scripting/loading-order.md#publishing). On by default. |
| **Minify Scripts** | Removes whitespace and shortens names in your scripts to make them smaller. Available when **Concatenate Scripts** is on. On by default. |
| **Generate Source Maps** | Adds source maps, which let browser developer tools show your original code when you debug the build. Available when **Minify Scripts** is on. |
| **Optimize Scene Format** | Makes scene files smaller to download. See [Optimize Scene Format](https://developer.playcanvas.com/user-manual/optimization/optimizing-scene-format.md). |

The npm download format keeps your scripts as source files, so these options don't apply to it.

## In This Section

| Page | What it covers |
| --- | --- |
| [PlayCanvas Hosting](https://developer.playcanvas.com/user-manual/editor/publishing/playcanvas-hosting.md) | Publish a build to a playcanv.as link, and choose which build the project's link plays. |
| [Downloading a Build](https://developer.playcanvas.com/user-manual/editor/publishing/downloading.md) | Download a build as a static website or an npm project, and what's inside each. |
| [Loading Screen](https://developer.playcanvas.com/user-manual/editor/interface/launch-page/loading-screen.md) | Replace the screen a build shows while its assets load. |
| [Playable Ads](https://developer.playcanvas.com/user-manual/editor/publishing/playable-ads.md) | Export a project as an interactive ad for Facebook or Snapchat. |

To host a downloaded build, embed it in another page, or publish it to a game platform, an app store or as a desktop app, see [Publishing](https://developer.playcanvas.com/user-manual/publishing.md), which applies to every way of building with PlayCanvas.
