Menu

kurogane 0.0.6-beta.1

Manifest reference

Every table and key of kurogane.toml, generated from the CLI's own definitions.

kurogane.toml sits at the project root. The file is optional. Without it or one of its keys the defaults apply. Paths are relative to the project root. See Project layoutfor how the starters use it.

[app]
name = "my-app"
frontend = "frontend"
frontend-dist = "frontend/dist"
frontend-install = "npm --prefix frontend install"
frontend-run = "npm --prefix frontend run dev"
frontend-build = "npm --prefix frontend run build"

[app]

Application identity, frontend and sandbox.

Keys this table doesn’t take are ignored.

copyrightstring

Copyright and branding text of an NSIS installer.

descriptionstring

File description of an NSIS installer.

frontendstring

Frontend source directory relative to the project root.

frontend-buildstring

Command kurogane bundle runs to build the frontend before cargo build. It runs from the project root through sh, or cmd on Windows.

frontend-diststring

Frontend build output that kurogane bundle packages, relative to the project root.

frontend-installstring

Command that installs the frontend's dependencies. kurogane new prints it in its next steps.

frontend-runstring

Command that starts the frontend's dev server. kurogane new prints it in its next steps.

iconstring

PNG icon of an AppImage and a macOS .app, relative to the project root.

identifierstring

Reverse-DNS identifier, such as com.example.notes. It is the macOS CFBundleIdentifier (com.kurogane.<name> without it) and the window class an AppImage's desktop entry names (the executable's name without it).

namestring

Display name. Defaults to the Cargo package name.

publisherstring

Publisher an NSIS installer names in Add/Remove Programs.

sandboxboolean

Whether the application enters Chromium's sandbox.

When enabled, the CLI builds and starts the application with platform-specific setup required by the sandbox. The runtime policy is selected separately with App::sandbox_mode.

Default false.

[bundle]

Bundle contents.

Keys this table doesn’t take are ignored.

[[bundle.resources]]

Extra files and directories every bundle carries.

A key this table doesn’t take is an error naming it.

destinationstring

Place inside the bundle relative to its root. Defaults to the source's file name.

sourcestring

File or directory to bundle, relative to the project root.

[linux]

Linux desktop entry.

Keys this table doesn’t take are ignored.

categoriesarray of strings

Categories of an AppImage's desktop entry. Defaults to Utility.

terminalboolean

Whether an AppImage's desktop entry runs in a terminal. Defaults to false.

[macos]

macOS Info.plist declarations.

A key this table doesn’t take is an error naming it.

categorystring

LSApplicationCategoryType, one of Apple's public.app-category.* values.

minimum-system-versionstring

LSMinimumSystemVersion, such as "13.0". Unset means CEF's own floor. No value goes below that floor.

[macos.privacy]

Why the application uses each device.

A key this table doesn’t take is an error naming it.

camerastring

NSCameraUsageDescription.

microphonestring

NSMicrophoneUsageDescription.

[windows]

Windows installer.

Keys this table doesn’t take are ignored.

desktop-shortcutboolean

Whether an NSIS installer creates a Desktop shortcut.

Default true.

start-menu-shortcutboolean

Whether an NSIS installer creates a Start Menu shortcut.

Default true.

[signing]

Code signing.

A key this table doesn’t take is an error naming it.

[signing.macos]

Signing for a macOS .app.

A key this table doesn’t take is an error naming it.

identitystring

Codesign identity from the keychain. - signs ad hoc.

[signing.windows]

Signing for the PE files of a Windows bundle and installer.

A key this table doesn’t take is an error naming it.

certificatestring

Certificate file, a .pfx or .p12 or with osslsigncode a PEM or DER chain.

certificate-password-envstring

Environment variable a certificate file's password is read from.

certificate-thumbprintstring

Thumbprint of a certificate in the Windows certificate store, for signtool. Never beside certificate.

custom-commandarray of strings

A program and its arguments; %1 in an argument is the file to sign.

digest-algorithmstring

Digest algorithm. Defaults to sha256.

timestamp-urlstring

RFC 3161 timestamp server.