Expand description
Package build orchestration. Orchestrates the Zoi package build process.
This module is responsible for turning a .pkg.lua definition into a
distributable .zpa archive. It:
- Executes the
prepare(),build(), andpackage()Lua functions. - Manages the staging area where files are organized into Zoi’s data structure.
- Generates accompanying metadata:
.hash(SHA-512),.size, and.files. - Supports native builds, Docker-based builds, and cross-compilation via CI tags.
- Handles optional PGP signing of the resulting archive.
Functions§
- get_
build_ dependencies - Retrieves build-time dependencies for a package on a specific platform.
- get_
test_ dependencies - Retrieves test-time dependencies for a package on a specific platform.
- resolve_
build_ type - Resolves the build type to use based on requested type and supported types.
- run
- Executes the build process for one or more platforms.