Skip to content

Commit

Permalink
Tweak name and description
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Aug 23, 2024
1 parent d7c9074 commit da34e94
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions core/tauri-config-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,8 @@
"null"
]
},
"ensureWebview2Version": {
"description": "Ensure webview2 version to be newer than this version,\n if the user's webview2 is older than this version,\n the installer will trigger a webview2 update",
"minimumWebview2Version": {
"description": "Try to ensure that the WebView2 version is equal to or newer than this version,\n if the user's WebView2 is older than this version,\n the installer will try to trigger a WebView2 update.",
"type": [
"string",
"null"
Expand Down
8 changes: 4 additions & 4 deletions core/tauri-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,11 +838,11 @@ pub struct NsisConfig {
/// ```
#[serde(alias = "installer-hooks")]
pub installer_hooks: Option<PathBuf>,
/// Ensure webview2 version to be newer than this version,
/// if the user's webview2 is older than this version,
/// the installer will trigger a webview2 update
/// Try to ensure that the WebView2 version is equal to or newer than this version,
/// if the user's WebView2 is older than this version,
/// the installer will try to trigger a WebView2 update.
#[serde(alias = "ensure-webview2-version")]
pub ensure_webview2_version: Option<String>,
pub minimum_webview2_version: Option<String>,
}

/// Install modes for the Webview2 runtime.
Expand Down
8 changes: 4 additions & 4 deletions tooling/bundler/src/bundle/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@ pub struct NsisSettings {
/// !macroend
/// ```
pub installer_hooks: Option<PathBuf>,
/// Ensure webview2 version to be newer than this version,
/// if the user's webview2 is older than this version,
/// the installer will trigger a webview2 update
pub ensure_webview2_version: Option<String>,
/// Try to ensure that the WebView2 version is equal to or newer than this version,
/// if the user's WebView2 is older than this version,
/// the installer will try to trigger a WebView2 update.
pub minimum_webview2_version: Option<String>,
}

/// The Custom Signing Command Settings for Windows exe
Expand Down
2 changes: 1 addition & 1 deletion tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fn build_nsis_app_installer(
if let Some(start_menu_folder) = &nsis.start_menu_folder {
data.insert("start_menu_folder", to_json(start_menu_folder));
}
if let Some(minimum_webview2_version) = &nsis.ensure_webview2_version {
if let Some(minimum_webview2_version) = &nsis.minimum_webview2_version {
data.insert(
"minimum_webview2_version",
to_json(minimum_webview2_version),
Expand Down
4 changes: 2 additions & 2 deletions tooling/cli/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,8 @@
"null"
]
},
"ensureWebview2Version": {
"description": "Ensure webview2 version to be newer than this version,\n if the user's webview2 is older than this version,\n the installer will trigger a webview2 update",
"minimumWebview2Version": {
"description": "Try to ensure that the WebView2 version is equal to or newer than this version,\n if the user's WebView2 is older than this version,\n the installer will try to trigger a WebView2 update.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/helpers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn nsis_settings(config: NsisConfig) -> tauri_bundler::NsisSettings {
compression: config.compression,
start_menu_folder: config.start_menu_folder,
installer_hooks: config.installer_hooks,
ensure_webview2_version: config.ensure_webview2_version,
minimum_webview2_version: config.minimum_webview2_version,
}
}

Expand Down

0 comments on commit da34e94

Please sign in to comment.