Help us shape the future of Go! Take the 2026 Go Developer Survey

build

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 54 Imported by: 0

Documentation

Overview

Package build produces self-describing game and level cartridges.

Index

Constants

This section is empty.

Variables

View Source
var ErrActionOutput = errors.New("invalid action output")

Functions

func CheckClientDependencies added in v0.0.2

func CheckClientDependencies(ctx context.Context, directory, compiler, executable string, packages ...string) error

CheckClientDependencies inspects the complete cartridge dependency closure using the selected compiler's WASI environment and package staging paths.

func Run

func Run(ctx context.Context, directory string) error

Run validates a project and compiles its self-describing cartridges.

func RunWithOptions

func RunWithOptions(ctx context.Context, directory string, options Options) error

RunWithOptions builds a project using its SDK-pinned toolchain.

Types

type Options

type Options struct {
	Compiler       string
	Go             string
	TinyGo         string
	WasmTools      string
	Host           string
	Target         string
	CDN            string
	BundledRuntime bool
	Platform       string
	Development    bool
	// DevelopmentBakes refreshes offline lighting for the live development server.
	// Ordinary --development builds retain their mesh-only, cache-consuming policy.
	DevelopmentBakes bool
	Progress         func(string)
	Summary          func(Summary)
	// contains filtered or unexported fields
}

Options configures build tool overrides.

type Summary added in v0.0.2

type Summary struct {
	Project, SDK, Target, Platform, Directory string
	HostURL                                   string
	PreviewURL                                string
	Levels, Chunks, Files                     int
	Textures, Sounds, Streams                 int
	Bytes, CartridgeBytes                     int64
	Duration                                  time.Duration
}

Summary describes the completed output directory, including its runtime. Bytes are on-disk bytes, not decoded memory or compressed download sizes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL