Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

publish

Tw93f01500888c6d
diff --git a/dist/cli.js b/dist/cli.js
index 4e023a89..76caf3df 100755
--- a/dist/cli.js
+++ b/dist/cli.js
@@ -23,7 +23,7 @@ import sharp from 'sharp';
import * as psl from 'psl';
var name = "pake-cli";
-var version = "3.4.1";
+var version = "3.4.2";
var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。";
var engines = {
node: ">=18.0.0"
diff --git a/package.json b/package.json
index db709caa..852f473c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "pake-cli",
- "version": "3.4.1",
+ "version": "3.4.2",
"description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。",
"engines": {
"node": ">=18.0.0"
diff --git a/src-tauri/src/app/window.rs b/src-tauri/src/app/window.rs
index e4c4ded9..373357ba 100644
--- a/src-tauri/src/app/window.rs
+++ b/src-tauri/src/app/window.rs
@@ -10,13 +10,11 @@ use tauri::{Theme, TitleBarStyle};
fn build_proxy_browser_arg(url: &Url) -> Option<String> {
let host = url.host_str()?;
let scheme = url.scheme();
- let port = url
- .port()
- .or_else(|| match scheme {
- "http" => Some(80),
- "socks5" => Some(1080),
- _ => None,
- })?;
+ let port = url.port().or_else(|| match scheme {
+ "http" => Some(80),
+ "socks5" => Some(1080),
+ _ => None,
+ })?;
match scheme {
"http" | "socks5" => Some(format!("--proxy-server={scheme}://{host}:{port}")),
@@ -82,8 +80,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
let mut windows_browser_args = String::from("--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection --disable-blink-features=AutomationControlled");
#[cfg(all(not(target_os = "windows"), not(target_os = "macos")))]
- let mut linux_browser_args =
- String::from("--disable-blink-features=AutomationControlled");
+ let mut linux_browser_args = String::from("--disable-blink-features=AutomationControlled");
if window_config.enable_wasm {
#[cfg(target_os = "windows")]