ocebuild.cli.commands.build
#
CLI entrypoint for the build command.
Module Contents#
Functions#
|
Reads the build file configuration. |
|
Unpacks packages to a temporary directory. |
|
Extracts packages for build entries satisfying the build configuration. |
|
Extracts all package-extracted build entries to the build directory. |
|
Builds the project's OpenCore EFI directory. |
- ocebuild.cli.commands.build.get_build_file(cwd: ocebuild.pipeline.packages.Union[str, ocebuild.third_party.cpython.pathlib.Path]) ocebuild.pipeline.build.Tuple[dict, dict, ocebuild.cli.logging.List[str], ocebuild.third_party.cpython.pathlib.Path, ocebuild.third_party.cpython.pathlib.Path] [source]#
Reads the build file configuration.
- Parameters:
cwd – The current working directory.
- Returns:
The build configuration.
The build variables.
The build flags.
The build file path.
The project directory.
- Return type:
A tuple containing
- ocebuild.cli.commands.build.unpack_packages(resolvers: ocebuild.cli.logging.List[dict], project_dir: ocebuild.third_party.cpython.pathlib.Path) dict [source]#
Unpacks packages to a temporary directory.
- ocebuild.cli.commands.build.extract_packages(build_vars: dict, lockfile: dict, resolvers: ocebuild.cli.logging.List[dict], packages: dict, build_dir: ocebuild.third_party.cpython.pathlib.Path) ocebuild.pipeline.build.Tuple[ocebuild.pipeline.packages.Union[ocebuild.third_party.cpython.pathlib.Path, None], dict] [source]#
Extracts packages for build entries satisfying the build configuration.
- ocebuild.cli.commands.build.extract_build_directory(opencore_pkg: ocebuild.pipeline.packages.Union[str, ocebuild.third_party.cpython.pathlib.Path], extracted_entries: dict, build_dir: ocebuild.third_party.cpython.pathlib.Path) None [source]#
Extracts all package-extracted build entries to the build directory.