Repository navigation
Getting Started
embala turns binaries you already built into native installers. You bring a
prebuilt application binary (a Windows .exe, a macOS Mach-O executable) and
one embala.toml; embala emits the installer packages — .msi, setup.exe,
.app, .pkg, .nupkg — with no per-format toolchain of its own.
The honest part up front: embala is a packager, not a compiler. It does not
build your program, cross-compile it, or invent a binary you didn't supply. If
the .msi needs an x86_64 Windows .exe, you produce that .exe first (with
your own compiler or CI); embala wraps it.
The reason to reach for it is that the wrapping runs from any host OS. You
can produce a Windows MSI and a macOS .pkg from a Linux CI runner — embala
writes the installer file formats directly and never shells out to WiX,
pkgbuild, productbuild, or nuget. The only external process embala ever
runs is a code-signing command you opt into (see Code-Signing); with no
[sign] section, a build touches nothing but your inputs and is
byte-reproducible.
Download a prebuilt binary from the
releases page. There are
builds for Linux (x86_64 and aarch64, static), macOS (Apple silicon) and
Windows (x86_64 and aarch64), with a SHA256SUMS file to check them against.
Unpack it and put embala on your PATH:
tar -xzf embala-<version>-x86_64-unknown-linux-musl.tar.gz
./embala-<version>-x86_64-unknown-linux-musl/embala --versionOr install it from crates.io with a Rust toolchain:
cargo install embalaThe rest of this page assumes embala is on your PATH and you have a
prebuilt application binary to package.
The minimum embala.toml that builds one MSI is a [package] table plus a
single format section:
[package]
name = "hello"
display-name = "Hello"
version = "1.0.0"
identifier = "com.example.hello"
publisher = "Example Inc."
description = "A tiny CLI."
[msi]
arch = "x86_64"
main-executable = "hello.exe"
files = [{ src = "hello.exe", dest = "hello.exe" }]Every field above is required (embala rejects unknown fields and applies these rules at parse time):
| Field | Rule if you get it wrong |
|---|---|
package.name |
Must match [a-z0-9-]+ — lowercase letters, digits, hyphens only. |
package.version |
Must be numeric x.y.z (three dot-separated numeric parts). MSI requires it. 1.0.0-beta is rejected. |
package.identifier |
Reverse-DNS-like, at least two segments, e.g. com.example.hello. |
msi.arch |
x86_64 or aarch64. A 32-bit value like x86 is rejected. |
msi.main-executable |
The install-relative path (a dest) the Start-menu shortcut points at. Must be one of the files dests. |
msi.files |
One or more { src, dest } entries. src is resolved relative to the config file's directory; dest is the install-relative path. |
arch = "aarch64" is supported and shipped for both the MSI and setup.exe
formats. The x86_64 path is verified end-to-end on real Windows; the aarch64
artifacts are cross-compile-tested but not yet verified on ARM64 Windows
hardware.
A single [package] table feeds every format section you declare. This is the
canonical fixture that exercises all five:
[package]
name = "hello"
display-name = "Embala Hello"
version = "0.1.0"
identifier = "ca.hrndz.embala.hello"
publisher = "Carlos Hernandez"
description = "Embala end-to-end test fixture"
homepage = "https://github.com/hurricanehrndz/embala"
license = "MIT"
copyright = "© 2026 Carlos Hernandez"
tags = ["cli", "embala", "demo"]
icon = "icon.png"
[msi]
arch = "x86_64"
main-executable = "hello.exe"
files = [{ src = "dist/hello.exe", dest = "hello.exe" }]
[app]
executable = "dist/hello-mac"
[pkg]
install-location = "/usr/local"
enable-user-home = true
files = [{ src = "hello.sh", dest = "bin/embala-hello" }]
[nupkg]
style = "embedded"
project-source-url = "https://github.com/hurricanehrndz/embala"
package-source-url = "https://github.com/hurricanehrndz/embala"
release-notes = "https://github.com/hurricanehrndz/embala/releases"
icon-url = "https://github.com/hurricanehrndz/embala/raw/main/fixtures/hello/icon.png"
license-url = "https://github.com/hurricanehrndz/embala/blob/main/LICENSE"
files = [{ src = "dist/hello.exe", dest = "hello.exe" }]
[setup]
arch = "x86_64"
main-executable = "hello.exe"
license = "license.txt"
files = [{ src = "dist/hello.exe", dest = "hello.exe" }]
components = [
{ id = "docs", label = "Documentation", description = "Offline readme", default = true, files = [{ src = "readme.txt", dest = "readme.txt" }] },
]What each section contributes:
| Section | Produces | Takes the payload from |
|---|---|---|
[msi] |
Windows Installer .msi
|
the Windows .exe in files
|
[app] |
macOS .app bundle |
the Mach-O executable (a single path, not a files list) |
[pkg] |
macOS installer .pkg
|
files, laid down under install-location
|
[nupkg] |
Chocolatey .nupkg
|
files (embedded style) |
[setup] |
Windows setup.exe
|
files plus each component's files
|
Notes on the shared metadata:
- The
[package]fields —publisher,description,homepage,license,copyright,tags,icon— flow into whichever formats carry that concept; you write them once. -
[app]uses a singleexecutablepath, not afilesarray — itsCFBundleExecutablemust be a real Mach-O binary (a script-backed bundle can't be code-signed later). -
[setup]here drives the declarative path (main-executable+license+components); a raw-script escape hatch exists but can't be combined with that sugar. -
[nupkg] style = "embedded"ships the payload inside the package. The alternative,style = "download", requiresurlandchecksuminstead and is covered on the Nupkg page.
Every field and its default is enumerated in Configuration-Reference.
embala buildWith no flags, embala build:
- reads
embala.tomlfrom the current directory (override with--config), - writes artifacts into
dist/(override with--out-dir), - builds every format that has a section present, in a fixed order:
msi,app,pkg,nupkg,setup.
To build a subset, pass a comma-separated --formats:
embala build --formats msi,setup
embala build --config packaging/embala.toml --formats app --out-dir outIf you request a format whose section isn't in the config, the build stops with a hard error naming the missing section — nothing is written:
$ embala build --formats app
Error: app requested but the config has no [app] section (embala.toml)(If the config has no format sections at all, the default all-formats build
fails with no format sections ([msi], [app], [pkg], [nupkg], [setup]) in embala.toml.)
A full run of the fixture above prints one line per artifact:
$ embala build
msi: wrote dist/hello-0.1.0-x86_64.msi
app: wrote dist/Embala Hello.app
pkg: wrote dist/hello-0.1.0.pkg
nupkg: wrote dist/hello-0.1.0.nupkg
setup: wrote dist/hello-0.1.0-x86_64-setup.exeOutput file names are derived, not configurable:
| Format | File name | Pattern |
|---|---|---|
| msi | hello-0.1.0-x86_64.msi |
<name>-<version>-<arch>.msi |
| app | Embala Hello.app |
<display-name>.app |
| pkg | hello-0.1.0.pkg |
<name>-<version>.pkg |
| nupkg | hello-0.1.0.nupkg |
<name>-<version>.nupkg |
| setup | hello-0.1.0-x86_64-setup.exe |
<name>-<version>-<arch>-setup.exe |
The MSI and setup.exe names carry the arch you set in their section, so an
aarch64 build lands as hello-0.1.0-aarch64.msi and
hello-0.1.0-aarch64-setup.exe. As above: arm64 is shipped and
cross-compile-tested, with end-to-end verification so far done on x86_64
Windows.
- Per-format guides — MSI, Setup-Exe, App-Bundle, Pkg, and Nupkg each cover the format-specific fields, layout, and caveats.
-
Configuration-Reference — every
embala.tomlfield, its type, default, and validation rule, in one place. -
Code-Signing — the optional
[sign]section, what signing actually clears (and what it doesn't), and per-tool guidance.