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.0Check that it is on your PATH:
bellui versionThis 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/belluiLook 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.0The 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
| Command | What it does |
|---|---|
bellui init [module] | Starts a new project in the current folder: go.mod, main.go, manifest.pxf and translations/en.pxf. |
bellui build | Builds the executable, with your app’s metadata compiled in. |
bellui package | Builds and wraps the app in the package format of the target platform. |
bellui install | Packages the app and installs it on this computer, or on a connected phone. |
bellui release | Packages and signs the app for an app store or other public distribution. |
bellui serve | Builds the web version and serves it on http://localhost:8080. |
bellui bundle | Turns files into Go resources compiled into your app. |
bellui translate | Collects the strings your code translates into a PXF translation file. See Translations. |
bellui env | Prints the Go, OS and Bellui versions, for bug reports. |
Run bellui help <command> for every flag of a command.