# Manifest reference

> Every table and key of `kurogane.toml` for Kurogane 0.0.6-beta.1, 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.

## `[app]`

Application identity, frontend and sandbox.

Keys this table doesn't take are ignored.

- `copyright` (string): Copyright and branding text of an NSIS installer.
- `description` (string): File description of an NSIS installer.
- `frontend` (string): Frontend source directory relative to the project root.
- `frontend-build` (string): Command `kurogane bundle` runs to build the frontend before `cargo build`. It runs from the project root through `sh`, or `cmd` on Windows.
- `frontend-dist` (string): Frontend build output that `kurogane bundle` packages, relative to the project root.
- `frontend-install` (string): Command that installs the frontend's dependencies. `kurogane new` prints it in its next steps.
- `frontend-run` (string): Command that starts the frontend's dev server. `kurogane new` prints it in its next steps.
- `icon` (string): PNG icon of an AppImage and a macOS `.app`, relative to the project root.
- `identifier` (string): 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).
- `name` (string): Display name. Defaults to the Cargo package name.
- `publisher` (string): Publisher an NSIS installer names in Add/Remove Programs.
- `sandbox` (boolean): 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.

- `destination` (string): Place inside the bundle relative to its root. Defaults to the source's file name.
- `source` (string): File or directory to bundle, relative to the project root.

## `[linux]`

Linux desktop entry.

Keys this table doesn't take are ignored.

- `categories` (array of strings): Categories of an AppImage's desktop entry. Defaults to `Utility`.
- `terminal` (boolean): 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.

- `category` (string): `LSApplicationCategoryType`, one of Apple's `public.app-category.*` values.
- `minimum-system-version` (string): `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.

- `camera` (string): `NSCameraUsageDescription`.
- `microphone` (string): `NSMicrophoneUsageDescription`.

## `[windows]`

Windows installer.

Keys this table doesn't take are ignored.

- `desktop-shortcut` (boolean): Whether an NSIS installer creates a Desktop shortcut. Default `true`.
- `start-menu-shortcut` (boolean): 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.

- `identity` (string): 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.

- `certificate` (string): Certificate file, a `.pfx` or `.p12` or with `osslsigncode` a PEM or DER chain.
- `certificate-password-env` (string): Environment variable a certificate file's password is read from.
- `certificate-thumbprint` (string): Thumbprint of a certificate in the Windows certificate store, for `signtool`. Never beside `certificate`.
- `custom-command` (array of strings): A program and its arguments; `%1` in an argument is the file to sign.
- `digest-algorithm` (string): Digest algorithm. Defaults to `sha256`.
- `timestamp-url` (string): RFC 3161 timestamp server.
