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.
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.
Source Files
¶
- actions.go
- audio_stream.go
- build.go
- client_policy.go
- generated.go
- image_assets.go
- io_context.go
- media.go
- native_host.go
- performance_binary.go
- processor_assets.go
- processors.go
- project_config.go
- renderer_debug.go
- storage.go
- summary.go
- templates.go
- ui.go
- ui_client.go
- ui_package.go
- ui_widgets.go
- video.go
- web_cdn.go
- web_delivery.go
- web_release.go
Click to show internal directories.
Click to hide internal directories.