Quellcode durchsuchen

docs(config): improve bundle identifier documentation, closes #4203

Lucas Nogueira vor 3 Jahren
Ursprung
Commit
2ced690207
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 3 1
      core/tauri-utils/src/config.rs
  2. 1 1
      tooling/cli/schema.json

+ 3 - 1
core/tauri-utils/src/config.rs

@@ -313,7 +313,9 @@ pub struct BundleConfig {
   pub active: bool,
   /// The bundle targets, currently supports ["deb", "app", "msi", "appimage", "dmg"] or "all"
   pub targets: Option<BundleTarget>,
-  /// The app's identifier
+  /// The application identifier in reverse domain name notation (e.g. `com.tauri.example`).
+  /// This string must be unique across applications since it is used in system configurations like
+  /// the bundle ID and path to the webview data directory.
   pub identifier: String,
   /// The app's icons
   #[serde(default)]

+ 1 - 1
tooling/cli/schema.json

@@ -912,7 +912,7 @@
           ]
         },
         "identifier": {
-          "description": "The app's identifier",
+          "description": "The application identifier in reverse domain name notation (e.g. `com.tauri.example`). This string must be unique across applications since it is used in system configurations like the bundle ID and path to the webview data directory.",
           "type": "string"
         },
         "icon": {