mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-17 23:51:43 +03:00
fix(bundler): remove unused code
This commit is contained in:
parent
7364f97d24
commit
8f5188c8a2
@ -65,27 +65,25 @@ pub fn bundle_project(settings: Settings) -> crate::Result<Vec<PathBuf>> {
|
||||
|
||||
#[cfg(windows)]
|
||||
{
|
||||
if let Ok(tauri_config) = get_tauri_config() {
|
||||
let exempt_output = Command::new("CheckNetIsolation")
|
||||
.args(&vec!["LoopbackExempt", "-s"])
|
||||
.output()
|
||||
.expect("failed to read LoopbackExempt -s");
|
||||
let exempt_output = Command::new("CheckNetIsolation")
|
||||
.args(&vec!["LoopbackExempt", "-s"])
|
||||
.output()
|
||||
.expect("failed to read LoopbackExempt -s");
|
||||
|
||||
if !exempt_output.status.success() {
|
||||
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
|
||||
}
|
||||
if !exempt_output.status.success() {
|
||||
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
|
||||
}
|
||||
|
||||
let output_str = String::from_utf8_lossy(&exempt_output.stdout).to_lowercase();
|
||||
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
|
||||
println!("Running Loopback command");
|
||||
runas::Command::new("powershell")
|
||||
.args(&[
|
||||
"CheckNetIsolation LoopbackExempt -a -n=\"Microsoft.Win32WebViewHost_cw5n1h2txyewy\"",
|
||||
])
|
||||
.force_prompt(true)
|
||||
.status()
|
||||
.expect("failed to run Loopback command");
|
||||
}
|
||||
let output_str = String::from_utf8_lossy(&exempt_output.stdout).to_lowercase();
|
||||
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
|
||||
println!("Running Loopback command");
|
||||
runas::Command::new("powershell")
|
||||
.args(&[
|
||||
"CheckNetIsolation LoopbackExempt -a -n=\"Microsoft.Win32WebViewHost_cw5n1h2txyewy\"",
|
||||
])
|
||||
.force_prompt(true)
|
||||
.status()
|
||||
.expect("failed to run Loopback command");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -449,9 +449,7 @@ pub fn build_wix_app_installer(
|
||||
|
||||
let mut data = BTreeMap::new();
|
||||
|
||||
if let Ok(tauri_config) = crate::bundle::tauri_config::get() {
|
||||
data.insert("embedded_server", to_json(true));
|
||||
}
|
||||
data.insert("embedded_server", to_json(true));
|
||||
|
||||
data.insert("product_name", to_json(settings.bundle_name()));
|
||||
data.insert("version", to_json(settings.version_string()));
|
||||
|
Loading…
Reference in New Issue
Block a user