Configuration Reference · All Fields

Source: the ProjectConfigFile interface in packages/core/src/app.ts; generated by pnpm --dir docs run gen:config — do not edit by hand (drift is gated by gen:config:check). Unknown top-level keys are not rejected: validation warns and keeps them as-is — hence the [key: string] index signature below.

40 rows total: top 16 · build 5 · app 2 · app.security 6 · bundle 11.

Top level (16 fields)

Field Type Description
$schema? string
entry? string
frontend? string
identifier? string
productName? string Alias of appName (upstream naming).
appName? string
mainBinaryName? string
version? string
csp? string Legacy top-level CSP — prefer app.security.csp (both work).
capabilities? string[] | string Legacy top-level capability list — prefer app.security.capabilities.
build? object
app? object
bundle? object
plugins? Record<string, unknown>
windows? Array<Partial<WindowConfig> & { label?: string }> Declarative window startup state; per-window fields (WindowConfig) are documented in Windows
[key: string] unknown

build (5 fields)

Field Type Description
build.devUrl? string
build.frontendDist? string
build.beforeDevCommand? string
build.beforeBuildCommand? string
build.beforeBundleCommand? string

app (2 fields)

Field Type Description
app.withGlobalTauri? boolean
app.macOSPrivateApi? boolean

app.security (6 fields)

Field Type Description
app.security.csp? string
app.security.devCsp? string
app.security.capabilities? string[] | string
app.security.assetProtocol.scope? string[] | string
app.security.assetProtocol.requireLiteralLeadingDot? boolean
app.security.freezePrototype? boolean

bundle (11 fields)

Field Type Description
bundle.active? boolean
bundle.targets? string | string[]
bundle.icon? string | string[]
bundle.resources? string[]
bundle.category? string
bundle.publisher? string
bundle.homepage? string
bundle.shortDescription? string
bundle.longDescription? string
bundle.copyright? string
bundle.license? string

适用版本:ztron 0.3.1