Skip to main content

Module build

Module build 

Source
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(), and package() 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.