Skip to content

Commit

Permalink
refactor!: remove skip_webview_install option (#9864)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored May 24, 2024
1 parent 1df5cde commit fc1543c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .changes/skip-webview-install-mod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"tauri-utils": "major:breaking"
"tauri-bundler": "major:breaking"
---

Removed `skip_webview_install` (`skipWebviewInstall`) option from config, which has been deprecated for a while now and planned to be removed in v2. Use `webview_install_mode` (`webviewInstallMode`) instead.

5 changes: 0 additions & 5 deletions core/tauri-config-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2154,11 +2154,6 @@
"type": "string"
}
},
"skipWebviewInstall": {
"description": "Disables the Webview2 runtime installation after app install.\n\nWill be removed in v2, prefer the [`WindowsConfig::webview_install_mode`] option.",
"default": false,
"type": "boolean"
},
"enableElevatedUpdateTask": {
"description": "Create an elevated update task within Windows Task Scheduler.",
"default": false,
Expand Down
5 changes: 0 additions & 5 deletions core/tauri-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,6 @@ pub struct WixConfig {
/// The Merge element ids you want to reference from the fragments.
#[serde(default, alias = "merge-refs")]
pub merge_refs: Vec<String>,
/// Disables the Webview2 runtime installation after app install.
///
/// Will be removed in v2, prefer the [`WindowsConfig::webview_install_mode`] option.
#[serde(default, alias = "skip-webview-install")]
pub skip_webview_install: bool,
/// Create an elevated update task within Windows Task Scheduler.
#[serde(default, alias = "enable-elevated-update-task")]
pub enable_elevated_update_task: bool,
Expand Down
2 changes: 0 additions & 2 deletions tooling/bundler/src/bundle/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ pub struct WixSettings {
pub feature_refs: Vec<String>,
/// The Merge element ids you want to reference from the fragments.
pub merge_refs: Vec<String>,
/// Disables the Webview2 runtime installation after app install. Will be removed in v2, use [`WindowsSettings::webview_install_mode`] instead.
pub skip_webview_install: bool,
/// Create an elevated update task within Windows Task Scheduler.
pub enable_elevated_update_task: bool,
/// Path to a bitmap file to use as the installation user interface banner.
Expand Down
4 changes: 0 additions & 4 deletions tooling/bundler/src/bundle/windows/msi/wix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,6 @@ pub fn build_wix_app_installer(
webview_install_mode = WebviewInstallMode::FixedRuntime {
path: fixed_runtime_path,
};
} else if let Some(wix) = &settings.windows().wix {
if wix.skip_webview_install {
webview_install_mode = WebviewInstallMode::Skip;
}
}
webview_install_mode
};
Expand Down
4 changes: 0 additions & 4 deletions tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,6 @@ fn build_nsis_app_installer(
webview_install_mode = WebviewInstallMode::FixedRuntime {
path: fixed_runtime_path,
};
} else if let Some(wix) = &settings.windows().wix {
if wix.skip_webview_install {
webview_install_mode = WebviewInstallMode::Skip;
}
}
webview_install_mode
};
Expand Down
5 changes: 0 additions & 5 deletions tooling/cli/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2154,11 +2154,6 @@
"type": "string"
}
},
"skipWebviewInstall": {
"description": "Disables the Webview2 runtime installation after app install.\n\nWill be removed in v2, prefer the [`WindowsConfig::webview_install_mode`] option.",
"default": false,
"type": "boolean"
},
"enableElevatedUpdateTask": {
"description": "Create an elevated update task within Windows Task Scheduler.",
"default": false,
Expand Down
1 change: 0 additions & 1 deletion tooling/cli/src/helpers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ pub fn wix_settings(config: WixConfig) -> tauri_bundler::WixSettings {
feature_group_refs: config.feature_group_refs,
feature_refs: config.feature_refs,
merge_refs: config.merge_refs,
skip_webview_install: config.skip_webview_install,
enable_elevated_update_task: config.enable_elevated_update_task,
banner_path: config.banner_path,
dialog_image_path: config.dialog_image_path,
Expand Down

0 comments on commit fc1543c

Please sign in to comment.