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.
copyrightstringCopyright and branding text of an NSIS installer.
descriptionstringFile description of an NSIS installer.
frontendstringFrontend source directory relative to the project root.
frontend-buildstringCommand
kurogane bundleruns to build the frontend beforecargo build. It runs from the project root throughsh, orcmdon Windows.frontend-diststringFrontend build output that
kurogane bundlepackages, relative to the project root.frontend-installstringCommand that installs the frontend's dependencies.
kurogane newprints it in its next steps.frontend-runstringCommand that starts the frontend's dev server.
kurogane newprints it in its next steps.iconstringPNG icon of an AppImage and a macOS
.app, relative to the project root.identifierstringReverse-DNS identifier, such as
com.example.notes. It is the macOSCFBundleIdentifier(com.kurogane.<name>without it) and the window class an AppImage's desktop entry names (the executable's name without it).namestringDisplay name. Defaults to the Cargo package name.
publisherstringPublisher an NSIS installer names in Add/Remove Programs.
sandboxbooleanWhether 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.
destinationstringPlace inside the bundle relative to its root. Defaults to the source's file name.
sourcestringFile or directory to bundle, relative to the project root.
[linux]
Linux desktop entry.
Keys this table doesn’t take are ignored.
categoriesarray of stringsCategories of an AppImage's desktop entry. Defaults to
Utility.terminalbooleanWhether 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.
categorystringLSApplicationCategoryType, one of Apple'spublic.app-category.*values.minimum-system-versionstringLSMinimumSystemVersion, 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.
camerastringNSCameraUsageDescription.microphonestringNSMicrophoneUsageDescription.
[windows]
Windows installer.
Keys this table doesn’t take are ignored.
desktop-shortcutbooleanWhether an NSIS installer creates a Desktop shortcut.
Default
true.start-menu-shortcutbooleanWhether 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.
identitystringCodesign 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.
certificatestringCertificate file, a
.pfxor.p12or withosslsigncodea PEM or DER chain.certificate-password-envstringEnvironment variable a certificate file's password is read from.
certificate-thumbprintstringThumbprint of a certificate in the Windows certificate store, for
signtool. Never besidecertificate.custom-commandarray of stringsA program and its arguments;
%1in an argument is the file to sign.digest-algorithmstringDigest algorithm. Defaults to
sha256.timestamp-urlstringRFC 3161 timestamp server.