Skip to content
Packaging and distribution

Packaging and distribution

go build gives you an executable. To ship an app you usually need more: an application bundle on macOS, an icon and version information in a Windows executable, a desktop entry on Linux, an APK for Android, an app bundle for iOS, or a folder of files for the web. The bellui command builds these for you.

Install the command

The command is its own Go module, separate from the Bellui library:

go install github.com/belluikit/bellui/cmd/bellui@v1.5.0

Check that it is on your PATH:

bellui version

This prints the version of the command and, when run inside your app’s module, the version of the Bellui library your app uses.

If the install fails

go install can stop with this error:

module github.com/belluikit/bellui@v1.5.0 found, but does not contain package github.com/belluikit/bellui/cmd/bellui

Look up the command’s module first, then install again:

go list -m github.com/belluikit/bellui/cmd/bellui@v1.5.0
go install github.com/belluikit/bellui/cmd/bellui@v1.5.0

The error comes from a bug in the go command. It happens when two things are true. GOPRIVATE or GONOPROXY is set, to any pattern. And the Bellui library at that version is already in your module cache, for example because you have built an app with it.

Commands

CommandWhat it does
bellui init [module]Starts a new project in the current folder: go.mod, main.go, manifest.pxf and translations/en.pxf.
bellui buildBuilds the executable, with your app’s metadata compiled in.
bellui packageBuilds and wraps the app in the package format of the target platform.
bellui installPackages the app and installs it on this computer, or on a connected phone.
bellui releasePackages and signs the app for an app store or other public distribution.
bellui serveBuilds the web version and serves it on http://localhost:8080.
bellui bundleTurns files into Go resources compiled into your app.
bellui translateCollects the strings your code translates into a PXF translation file. See Translations.
bellui envPrints the Go, OS and Bellui versions, for bug reports.

Run bellui help <command> for every flag of a command.