Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/distribution/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@ the resource file. For example, if you need to make an application package for `
and the `resources.neu` file. The `resources.neu` contains all application resources, so, double click on the binary and check whether
the resource file is not corrupted.

### Embedding resources into the binary

By default, `neu build` produces two separate files per platform: the application binary and `resources.neu`. Alternatively, you can embed `resources.neu` directly into the binary using the `--embed-resources` flag, producing a **single self-contained executable** with no external resource file dependency.

```bash
neu build --embed-resources
```

The following table summarizes the difference:

| Command | Distribution output |
|---|---|
| `neu build` | `myapp-linux_x64` + `resources.neu` |
| `neu build --embed-resources` | `myapp-linux_x64` (resources embedded) |

:::note
Embedding resources makes it impossible to update application resources without rebuilding the binary. The standard two-file approach is recommended if you plan to patch resources independently between releases.
:::

## Creating portable application packages using build scripts

The [`hschneider/neutralino-build-scripts`](https://github.com/hschneider/neutralino-build-scripts/) community project offers pre-developed build scripts for generating platform-specific application bundles. For example, it generates a standard app structure on GNU/Linux by generating `.desktop` file with app icon by also providing a shell script to install the app.
Expand Down