2021-02-20 17:36:17 +03:00
{
"$schema" : "http://json-schema.org/draft-07/schema#" ,
"title" : "Config" ,
"description" : "The tauri.conf.json mapper." ,
"type" : "object" ,
"properties" : {
"build" : {
"description" : "The build configuration." ,
"default" : {
"devPath" : "" ,
"distDir" : "../dist" ,
"withGlobalTauri" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/BuildConfig"
}
]
} ,
2021-03-23 03:51:23 +03:00
"package" : {
"description" : "Package settings." ,
"default" : { } ,
"allOf" : [
{
"$ref" : "#/definitions/PackageConfig"
}
]
} ,
2021-02-20 17:36:17 +03:00
"plugins" : {
"description" : "The plugins config." ,
"default" : { } ,
"type" : "object" ,
"additionalProperties" : {
"type" : "object" ,
"additionalProperties" : true
}
} ,
"tauri" : {
"description" : "The Tauri configuration." ,
"default" : {
2021-02-20 20:09:18 +03:00
"allowlist" : {
"all" : false ,
"dialog" : {
"all" : false ,
"open" : false ,
"save" : false
} ,
"fs" : {
"all" : false ,
"copyFile" : false ,
"createDir" : false ,
"readBinaryFile" : false ,
"readDir" : false ,
"readTextFile" : false ,
"removeDir" : false ,
"removeFile" : false ,
"renameFile" : false ,
"writeBinaryFile" : false ,
"writeFile" : false
} ,
"globalShortcut" : {
"all" : false
} ,
"http" : {
"all" : false ,
"request" : false
} ,
"notification" : {
"all" : false
} ,
2021-08-02 16:58:09 +03:00
"os" : {
"all" : false
} ,
"path" : {
"all" : false
} ,
2021-02-20 20:09:18 +03:00
"shell" : {
"all" : false ,
"execute" : false ,
"open" : false
} ,
"window" : {
"all" : false ,
"create" : false
}
} ,
2021-02-20 17:36:17 +03:00
"bundle" : {
"active" : false ,
"deb" : {
2021-04-25 07:46:04 +03:00
"files" : { } ,
2021-02-20 17:36:17 +03:00
"useBootstrapper" : false
} ,
2021-03-25 07:56:00 +03:00
"macOS" : {
2021-02-20 17:36:17 +03:00
"useBootstrapper" : false
2021-03-29 01:58:44 +03:00
} ,
"windows" : {
"certificateThumbprint" : null ,
"digestAlgorithm" : null ,
2021-04-23 21:30:44 +03:00
"timestampUrl" : null ,
"wix" : null
2021-02-21 05:35:01 +03:00
}
2021-02-20 17:36:17 +03:00
} ,
2021-04-05 20:51:17 +03:00
"updater" : {
"active" : false
} ,
2021-02-20 17:36:17 +03:00
"windows" : [ ]
} ,
"allOf" : [
{
"$ref" : "#/definitions/TauriConfig"
}
]
}
} ,
"additionalProperties" : false ,
"definitions" : {
2021-02-20 20:09:18 +03:00
"AllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"dialog" : {
"default" : {
"all" : false ,
"open" : false ,
"save" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/DialogAllowlistConfig"
}
]
} ,
"fs" : {
"default" : {
"all" : false ,
"copyFile" : false ,
"createDir" : false ,
"readBinaryFile" : false ,
"readDir" : false ,
"readTextFile" : false ,
"removeDir" : false ,
"removeFile" : false ,
"renameFile" : false ,
"writeBinaryFile" : false ,
"writeFile" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/FsAllowlistConfig"
}
]
} ,
"globalShortcut" : {
"default" : {
"all" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/GlobalShortcutAllowlistConfig"
}
]
} ,
"http" : {
"default" : {
"all" : false ,
"request" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/HttpAllowlistConfig"
}
]
} ,
"notification" : {
"default" : {
"all" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/NotificationAllowlistConfig"
}
]
} ,
2021-08-02 16:58:09 +03:00
"os" : {
"default" : {
"all" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/OsAllowlistConfig"
}
]
} ,
"path" : {
"default" : {
"all" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/PathAllowlistConfig"
}
]
} ,
2021-02-20 20:09:18 +03:00
"shell" : {
"default" : {
"all" : false ,
"execute" : false ,
"open" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/ShellAllowlistConfig"
}
]
} ,
"window" : {
"default" : {
"all" : false ,
"create" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/WindowAllowlistConfig"
}
]
}
} ,
"additionalProperties" : false
} ,
2021-05-31 17:42:10 +03:00
"AppUrl" : {
"description" : "The `dev_path` and `dist_dir` options." ,
"anyOf" : [
{
"description" : "The app's external URL, or the path to the directory containing the app assets." ,
"type" : "string"
} ,
{
"description" : "An array of files to embed on the app." ,
"type" : "array" ,
"items" : {
"type" : "string"
}
}
]
} ,
2021-02-20 17:36:17 +03:00
"BuildConfig" : {
"description" : "The Build configuration object." ,
"type" : "object" ,
"properties" : {
"beforeBuildCommand" : {
"description" : "a shell command to run before `tauri build` kicks in" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"beforeDevCommand" : {
"description" : "a shell command to run before `tauri dev` kicks in" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"devPath" : {
2021-05-31 17:42:10 +03:00
"description" : "The path or URL to use on development." ,
2021-02-20 17:36:17 +03:00
"default" : "" ,
2021-05-31 17:42:10 +03:00
"allOf" : [
{
"$ref" : "#/definitions/AppUrl"
}
]
2021-02-20 17:36:17 +03:00
} ,
"distDir" : {
"description" : "the path to the app's dist dir. This path must contain your index.html file." ,
"default" : "../dist" ,
2021-05-31 17:42:10 +03:00
"allOf" : [
{
"$ref" : "#/definitions/AppUrl"
}
]
2021-02-20 17:36:17 +03:00
} ,
2021-05-13 23:01:15 +03:00
"features" : {
"description" : "features passed to `cargo` commands" ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-05-13 23:01:15 +03:00
"items" : {
"type" : "string"
}
} ,
2021-04-30 21:16:14 +03:00
"runner" : {
"description" : "The binary used to build and run the application." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-04-30 21:16:14 +03:00
} ,
2021-02-20 17:36:17 +03:00
"withGlobalTauri" : {
"description" : "Whether we should inject the Tauri API on `window.__TAURI__` or not." ,
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
"BundleConfig" : {
"type" : "object" ,
"properties" : {
"active" : {
"description" : "Whether we should build your app with tauri-bundler or plain `cargo build`" ,
2021-04-13 07:47:34 +03:00
"default" : false ,
2021-02-20 17:36:17 +03:00
"type" : "boolean"
} ,
"category" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"copyright" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"deb" : {
"default" : {
2021-04-25 07:46:04 +03:00
"files" : { } ,
2021-02-20 17:36:17 +03:00
"useBootstrapper" : false
} ,
"allOf" : [
{
"$ref" : "#/definitions/DebConfig"
}
]
} ,
"externalBin" : {
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"icon" : {
"description" : "The app's icons" ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"identifier" : {
"description" : "The app's identifier" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"longDescription" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
2021-03-25 07:56:00 +03:00
"macOS" : {
2021-02-20 17:36:17 +03:00
"default" : {
"useBootstrapper" : false
} ,
"allOf" : [
{
2021-03-25 07:56:00 +03:00
"$ref" : "#/definitions/MacConfig"
2021-02-20 17:36:17 +03:00
}
]
} ,
"resources" : {
"description" : "App resources to bundle. Each resource is a path to a file or directory. Glob patterns are supported." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"shortDescription" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"targets" : {
2021-03-25 07:56:00 +03:00
"description" : "The bundle targets, currently supports [\"deb\", \"app\", \"msi\", \"appimage\", \"dmg\"] or \"all\"" ,
2021-02-20 17:36:17 +03:00
"anyOf" : [
{
"$ref" : "#/definitions/BundleTarget"
} ,
{
"type" : "null"
}
]
2021-03-29 01:58:44 +03:00
} ,
"windows" : {
"default" : {
"certificateThumbprint" : null ,
"digestAlgorithm" : null ,
2021-04-23 21:30:44 +03:00
"timestampUrl" : null ,
"wix" : null
2021-03-29 01:58:44 +03:00
} ,
"allOf" : [
{
"$ref" : "#/definitions/WindowsConfig"
}
]
2021-02-20 17:36:17 +03:00
}
} ,
"additionalProperties" : false
} ,
"BundleTarget" : {
"anyOf" : [
{
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
{
"type" : "string"
}
]
} ,
"CliArg" : {
"description" : "A CLI argument definition" ,
"type" : "object" ,
2021-07-04 05:49:01 +03:00
"required" : [
"name"
] ,
2021-02-20 17:36:17 +03:00
"properties" : {
"conflictsWith" : {
"description" : "Sets a conflicting argument by name i.e. when using this argument, the following argument can't be present and vice versa." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"conflictsWithAll" : {
"description" : "The same as conflictsWith but allows specifying multiple two-way conflicts per argument." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"description" : {
"description" : "The argument description which will be shown on the help information. Typically, this is a short (one line) description of the arg." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"index" : {
"description" : "The positional argument index, starting at 1.\n\nThe index refers to position according to other positional argument. It does not define position in the argument list as a whole. When utilized with multiple=true, only the last positional argument may be defined as multiple (i.e. the one with the highest index)." ,
2021-07-04 05:49:01 +03:00
"type" : [
"integer" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "uint64" ,
"minimum" : 0.0
} ,
"longDescription" : {
"description" : "The argument long description which will be shown on the help information. Typically this a more detailed (multi-line) message that describes the argument." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"maxValues" : {
"description" : "Specifies the maximum number of values are for this argument. For example, if you had a -f <file> argument where you wanted up to 3 'files', you would set .max_values(3), and this argument would be satisfied if the user provided, 1, 2, or 3 values." ,
2021-07-04 05:49:01 +03:00
"type" : [
"integer" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "uint64" ,
"minimum" : 0.0
} ,
"minValues" : {
"description" : "Specifies the minimum number of values for this argument. For example, if you had a -f <file> argument where you wanted at least 2 'files', you would set `minValues: 2`, and this argument would be satisfied if the user provided, 2 or more values." ,
2021-07-04 05:49:01 +03:00
"type" : [
"integer" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "uint64" ,
"minimum" : 0.0
} ,
"multiple" : {
"description" : "Specifies that the argument may appear more than once.\n\n- For flags, this results in the number of occurrences of the flag being recorded. For example -ddd or -d -d -d would count as three occurrences. - For options there is a distinct difference in multiple occurrences vs multiple values. For example, --opt val1 val2 is one occurrence, but two values. Whereas --opt val1 --opt val2 is two occurrences." ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"multipleOccurrences" : {
"description" : "specifies that the argument may appear more than once." ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"name" : {
"description" : "The unique argument name" ,
"type" : "string"
} ,
"numberOfValues" : {
2021-07-04 05:49:01 +03:00
"type" : [
"integer" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "uint64" ,
"minimum" : 0.0
} ,
"possibleValues" : {
"description" : "Specifies a list of possible values for this argument. At runtime, the CLI verifies that only one of the specified values was used, or fails with an error message." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"requireEquals" : {
"description" : "Requires that options use the --option=val syntax i.e. an equals between the option and associated value." ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"required" : {
"description" : "Sets whether or not the argument is required by default.\n\n- Required by default means it is required, when no other conflicting rules have been evaluated - Conflicting rules take precedence over being required." ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"requiredIfEq" : {
"description" : "Allows specifying that an argument is required conditionally with the signature [arg, value] the requirement will only become valid if the `arg`'s value equals `${value}`." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"requiredUnlessPresent" : {
"description" : "Sets an arg that override this arg's required setting i.e. this arg will be required unless this other argument is present." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"requiredUnlessPresentAll" : {
"description" : "Sets args that override this arg's required setting i.e. this arg will be required unless all these other arguments are present." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"requiredUnlessPresentAny" : {
"description" : "Sets args that override this arg's required setting i.e. this arg will be required unless at least one of these other arguments are present." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"requires" : {
"description" : "Tets an argument by name that is required when this one is present i.e. when using this argument, the following argument must be present." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"requiresAll" : {
"description" : "Sts multiple arguments by names that are required when this one is present i.e. when using this argument, the following arguments must be present." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"requiresIf" : {
"description" : "Allows a conditional requirement with the signature [arg, value] the requirement will only become valid if `arg`'s value equals `${value}`." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"short" : {
"description" : "The short version of the argument, without the preceding -.\n\nNOTE: Any leading - characters will be stripped, and only the first non - character will be used as the short version." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"maxLength" : 1 ,
"minLength" : 1
} ,
"takesValue" : {
"description" : "Specifies that the argument takes a value at run time.\n\nNOTE: values for arguments may be specified in any of the following methods - Using a space such as -o value or --option value - Using an equals and no space such as -o=value or --option=value - Use a short and no space such as -ovalue" ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-02-20 17:36:17 +03:00
}
} ,
"additionalProperties" : false
} ,
"CliConfig" : {
"description" : "describes a CLI configuration" ,
"type" : "object" ,
"properties" : {
"afterHelp" : {
"description" : "adds additional help information to be displayed in addition to auto-generated help this information is displayed after the auto-generated help information this is often used to describe how to use the arguments, or caveats to be noted." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"args" : {
"description" : "list of args for the command" ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"$ref" : "#/definitions/CliArg"
}
} ,
"beforeHelp" : {
"description" : "adds additional help information to be displayed in addition to auto-generated help this information is displayed before the auto-generated help information. this is often used for header information" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"description" : {
"description" : "command description which will be shown on the help information" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"longDescription" : {
"description" : "command long description which will be shown on the help information" ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"subcommands" : {
"description" : "list of subcommands of this command.\n\nsubcommands are effectively sub-apps, because they can contain their own arguments, subcommands, usage, etc. they also function just like the app command, in that they get their own auto generated help and usage" ,
2021-07-04 05:49:01 +03:00
"type" : [
"object" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"additionalProperties" : {
"$ref" : "#/definitions/CliConfig"
}
}
} ,
"additionalProperties" : false
} ,
"DebConfig" : {
"type" : "object" ,
"properties" : {
"depends" : {
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
2021-04-25 07:46:04 +03:00
"files" : {
"default" : { } ,
"type" : "object" ,
"additionalProperties" : {
"type" : "string"
}
} ,
2021-02-20 17:36:17 +03:00
"useBootstrapper" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-02-20 20:09:18 +03:00
"DialogAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"open" : {
"default" : false ,
"type" : "boolean"
} ,
"save" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
"FsAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"copyFile" : {
"default" : false ,
"type" : "boolean"
} ,
"createDir" : {
"default" : false ,
"type" : "boolean"
} ,
"readBinaryFile" : {
"default" : false ,
"type" : "boolean"
} ,
"readDir" : {
"default" : false ,
"type" : "boolean"
} ,
"readTextFile" : {
"default" : false ,
"type" : "boolean"
} ,
"removeDir" : {
"default" : false ,
"type" : "boolean"
} ,
"removeFile" : {
"default" : false ,
"type" : "boolean"
} ,
"renameFile" : {
"default" : false ,
"type" : "boolean"
} ,
"writeBinaryFile" : {
"default" : false ,
"type" : "boolean"
} ,
"writeFile" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
"GlobalShortcutAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
"HttpAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"request" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-03-25 07:56:00 +03:00
"MacConfig" : {
2021-02-20 17:36:17 +03:00
"type" : "object" ,
"properties" : {
2021-03-29 01:58:44 +03:00
"entitlements" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-29 01:58:44 +03:00
} ,
2021-02-20 17:36:17 +03:00
"exceptionDomain" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"frameworks" : {
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"items" : {
"type" : "string"
}
} ,
"license" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"minimumSystemVersion" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
2021-03-29 01:58:44 +03:00
"signingIdentity" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-29 01:58:44 +03:00
} ,
2021-02-20 17:36:17 +03:00
"useBootstrapper" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-03-25 07:56:00 +03:00
"NotificationAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-08-02 16:58:09 +03:00
"OsAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-03-23 03:51:23 +03:00
"PackageConfig" : {
"type" : "object" ,
"properties" : {
"productName" : {
"description" : "App name. Automatically converted to kebab-case on Linux." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-23 03:51:23 +03:00
} ,
"version" : {
"description" : "App version." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-23 03:51:23 +03:00
}
} ,
"additionalProperties" : false
} ,
2021-08-02 16:58:09 +03:00
"PathAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-02-20 17:36:17 +03:00
"SecurityConfig" : {
"type" : "object" ,
"properties" : {
"csp" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
}
} ,
"additionalProperties" : false
} ,
2021-02-20 20:09:18 +03:00
"ShellAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"execute" : {
"default" : false ,
"type" : "boolean"
} ,
"open" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-05-09 14:15:37 +03:00
"SystemTrayConfig" : {
"type" : "object" ,
2021-07-04 05:49:01 +03:00
"required" : [
"iconPath"
] ,
2021-05-09 14:15:37 +03:00
"properties" : {
2021-07-29 22:29:59 +03:00
"iconAsTemplate" : {
"description" : "A Boolean value that determines whether the image represents a [template](https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc) image on macOS." ,
"default" : false ,
"type" : "boolean"
} ,
2021-05-09 14:15:37 +03:00
"iconPath" : {
"description" : "Path to the icon to use on the system tray.\n\nIt is forced to be a `.png` file on Linux and macOS, and a `.ico` file on Windows." ,
"type" : "string"
}
} ,
"additionalProperties" : false
} ,
2021-02-20 17:36:17 +03:00
"TauriConfig" : {
"description" : "The Tauri configuration object." ,
"type" : "object" ,
"properties" : {
"allowlist" : {
2021-02-20 20:09:18 +03:00
"default" : {
"all" : false ,
"dialog" : {
"all" : false ,
"open" : false ,
"save" : false
} ,
"fs" : {
"all" : false ,
"copyFile" : false ,
"createDir" : false ,
"readBinaryFile" : false ,
"readDir" : false ,
"readTextFile" : false ,
"removeDir" : false ,
"removeFile" : false ,
"renameFile" : false ,
"writeBinaryFile" : false ,
"writeFile" : false
} ,
"globalShortcut" : {
"all" : false
} ,
"http" : {
"all" : false ,
"request" : false
} ,
"notification" : {
"all" : false
} ,
2021-08-02 16:58:09 +03:00
"os" : {
"all" : false
} ,
"path" : {
"all" : false
} ,
2021-02-20 20:09:18 +03:00
"shell" : {
"all" : false ,
"execute" : false ,
"open" : false
} ,
"window" : {
"all" : false ,
"create" : false
}
} ,
"allOf" : [
{
"$ref" : "#/definitions/AllowlistConfig"
}
]
2021-02-20 17:36:17 +03:00
} ,
"bundle" : {
"description" : "The bundler configuration." ,
"default" : {
"active" : false ,
"deb" : {
2021-04-25 07:46:04 +03:00
"files" : { } ,
2021-02-20 17:36:17 +03:00
"useBootstrapper" : false
} ,
2021-03-25 07:56:00 +03:00
"macOS" : {
2021-02-20 17:36:17 +03:00
"useBootstrapper" : false
2021-03-29 01:58:44 +03:00
} ,
"windows" : {
"certificateThumbprint" : null ,
"digestAlgorithm" : null ,
2021-04-23 21:30:44 +03:00
"timestampUrl" : null ,
"wix" : null
2021-02-21 05:35:01 +03:00
}
2021-02-20 17:36:17 +03:00
} ,
"allOf" : [
{
"$ref" : "#/definitions/BundleConfig"
}
]
} ,
"cli" : {
"description" : "The CLI configuration." ,
"anyOf" : [
{
"$ref" : "#/definitions/CliConfig"
} ,
{
"type" : "null"
}
]
} ,
"security" : {
"anyOf" : [
{
"$ref" : "#/definitions/SecurityConfig"
} ,
{
"type" : "null"
}
]
} ,
2021-05-09 14:15:37 +03:00
"systemTray" : {
"description" : "Configuration for app system tray." ,
"anyOf" : [
{
"$ref" : "#/definitions/SystemTrayConfig"
} ,
{
"type" : "null"
}
]
} ,
2021-04-05 20:51:17 +03:00
"updater" : {
"description" : "The updater configuration." ,
"default" : {
"active" : false ,
"dialog" : true
} ,
"allOf" : [
{
"$ref" : "#/definitions/UpdaterConfig"
}
]
} ,
2021-02-20 17:36:17 +03:00
"windows" : {
"description" : "The windows configuration." ,
"default" : [ ] ,
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/WindowConfig"
}
}
} ,
"additionalProperties" : false
2021-04-05 20:51:17 +03:00
} ,
"UpdaterConfig" : {
"type" : "object" ,
"properties" : {
"active" : {
"description" : "Whether the updater is active or not." ,
2021-04-13 07:47:34 +03:00
"default" : false ,
2021-04-05 20:51:17 +03:00
"type" : "boolean"
} ,
"dialog" : {
"description" : "Display built-in dialog or use event system if disabled." ,
"default" : true ,
2021-07-04 05:49:01 +03:00
"type" : [
"boolean" ,
"null"
]
2021-04-05 20:51:17 +03:00
} ,
"endpoints" : {
"description" : "The updater endpoints." ,
2021-07-04 05:49:01 +03:00
"type" : [
"array" ,
"null"
] ,
2021-04-05 20:51:17 +03:00
"items" : {
"type" : "string"
}
} ,
"pubkey" : {
"description" : "Optional pubkey." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-04-05 20:51:17 +03:00
}
} ,
"additionalProperties" : false
2021-02-20 17:36:17 +03:00
} ,
2021-02-20 20:09:18 +03:00
"WindowAllowlistConfig" : {
"type" : "object" ,
"properties" : {
"all" : {
"default" : false ,
"type" : "boolean"
} ,
"create" : {
"default" : false ,
"type" : "boolean"
}
} ,
"additionalProperties" : false
} ,
2021-02-20 17:36:17 +03:00
"WindowConfig" : {
"description" : "The window configuration object." ,
"type" : "object" ,
"properties" : {
"alwaysOnTop" : {
"description" : "Whether the window should always be on top of other windows." ,
"default" : false ,
"type" : "boolean"
} ,
2021-07-12 17:59:32 +03:00
"center" : {
"description" : "Whether or not the window starts centered or not." ,
"default" : false ,
"type" : "boolean"
} ,
2021-02-20 17:36:17 +03:00
"decorations" : {
"description" : "Whether the window should have borders and bars." ,
2021-03-13 02:23:00 +03:00
"default" : true ,
2021-02-20 17:36:17 +03:00
"type" : "boolean"
} ,
2021-06-21 16:55:14 +03:00
"fileDropEnabled" : {
"description" : "Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows." ,
"default" : true ,
"type" : "boolean"
} ,
2021-07-12 17:59:32 +03:00
"focus" : {
"description" : "Whether the window will be initially hidden or focused." ,
"default" : true ,
"type" : "boolean"
} ,
2021-02-20 17:36:17 +03:00
"fullscreen" : {
"description" : "Whether the window starts as fullscreen or not." ,
"default" : false ,
"type" : "boolean"
} ,
"height" : {
"description" : "The window height." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"label" : {
"description" : "The window identifier." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"maxHeight" : {
"description" : "The max window height." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"maxWidth" : {
"description" : "The max window width." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"maximized" : {
"description" : "Whether the window is maximized or not." ,
"default" : false ,
"type" : "boolean"
} ,
"minHeight" : {
"description" : "The min window height." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"minWidth" : {
"description" : "The min window width." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"resizable" : {
"description" : "Whether the window is resizable or not." ,
"default" : false ,
"type" : "boolean"
} ,
2021-07-04 06:06:41 +03:00
"skipTaskbar" : {
"description" : "Whether or not the window icon should be added to the taskbar." ,
"default" : false ,
"type" : "boolean"
} ,
2021-02-20 17:36:17 +03:00
"title" : {
"description" : "The window title." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"transparent" : {
"description" : "Whether the window is transparent or not." ,
"default" : false ,
"type" : "boolean"
} ,
"url" : {
"description" : "The window webview URL." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-02-20 17:36:17 +03:00
} ,
"visible" : {
"description" : "Whether the window is visible or not." ,
2021-03-13 02:23:00 +03:00
"default" : true ,
2021-02-20 17:36:17 +03:00
"type" : "boolean"
} ,
"width" : {
"description" : "The window width." ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"x" : {
"description" : "The horizontal position of the window's top left corner" ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
} ,
"y" : {
"description" : "The vertical position of the window's top left corner" ,
2021-07-04 05:49:01 +03:00
"type" : [
"number" ,
"null"
] ,
2021-02-20 17:36:17 +03:00
"format" : "double"
}
} ,
"additionalProperties" : false
2021-03-29 01:58:44 +03:00
} ,
"WindowsConfig" : {
"type" : "object" ,
"properties" : {
"certificateThumbprint" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-29 01:58:44 +03:00
} ,
"digestAlgorithm" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-29 01:58:44 +03:00
} ,
"timestampUrl" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-04-23 21:30:44 +03:00
} ,
"wix" : {
"anyOf" : [
{
"$ref" : "#/definitions/WixConfig"
} ,
{
"type" : "null"
}
]
}
} ,
"additionalProperties" : false
} ,
"WixConfig" : {
"type" : "object" ,
"properties" : {
2021-08-16 17:17:29 +03:00
"bannerPath" : {
"description" : "Path to a bitmap file to use as the installation user interface banner. This bitmap will appear at the top of all but the first page of the installer.\n\nThe required dimensions are 493px × 58px." ,
"type" : [
"string" ,
"null"
]
} ,
2021-04-23 21:30:44 +03:00
"componentGroupRefs" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"componentRefs" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
2021-08-16 18:03:00 +03:00
"dialogImagePath" : {
"description" : "Path to a bitmap file to use on the installation user interface dialogs. It is used on the welcome and completion dialogs. The required dimensions are 493px × 312px." ,
"type" : [
"string" ,
"null"
]
} ,
2021-07-15 17:38:03 +03:00
"enableElevatedUpdateTask" : {
"default" : false ,
"type" : "boolean"
} ,
2021-04-23 21:30:44 +03:00
"featureGroupRefs" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"featureRefs" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"fragmentPaths" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
2021-06-16 03:12:34 +03:00
"language" : {
"description" : "App language. See https://docs.microsoft.com/en-us/windows/win32/msi/localizing-the-error-and-actiontext-tables." ,
"default" : "en-US" ,
"type" : "string"
} ,
2021-06-21 16:36:13 +03:00
"license" : {
"description" : "Path to the license file." ,
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-06-21 16:36:13 +03:00
} ,
2021-04-23 21:30:44 +03:00
"mergeRefs" : {
"default" : [ ] ,
"type" : "array" ,
"items" : {
"type" : "string"
}
2021-04-25 00:32:28 +03:00
} ,
2021-04-25 01:01:50 +03:00
"skipWebviewInstall" : {
"default" : false ,
"type" : "boolean"
} ,
2021-04-25 00:32:28 +03:00
"template" : {
2021-07-04 05:49:01 +03:00
"type" : [
"string" ,
"null"
]
2021-03-29 01:58:44 +03:00
}
} ,
"additionalProperties" : false
2021-02-20 17:36:17 +03:00
}
}
2021-07-04 05:49:01 +03:00
}