mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
refactor!: remove skip_webview_install
option (#9864)
This commit is contained in:
parent
1df5cdeb06
commit
fc1543c65e
7
.changes/skip-webview-install-mod.md
Normal file
7
.changes/skip-webview-install-mod.md
Normal file
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user