From 4fc524e0b2e90213a7dc653c34a1876763f5ea78 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 11 Nov 2025 15:56:34 +0800 Subject: [PATCH] 3.5.0 --- dist/cli.js | 20 +++++++++++++------- package.json | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/dist/cli.js b/dist/cli.js index 76caf3d..4e0d45f 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.2"; +var version = "3.5.0"; var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚"; var engines = { node: ">=18.0.0" @@ -73,8 +73,8 @@ var type = "module"; var exports = "./dist/cli.js"; var license = "MIT"; var dependencies = { - "@tauri-apps/api": "^2.8.0", - "@tauri-apps/cli": "^2.8.4", + "@tauri-apps/api": "^2.9.0", + "@tauri-apps/cli": "^2.9.0", axios: "^1.12.2", chalk: "^5.6.2", commander: "^12.1.0", @@ -92,12 +92,12 @@ var dependencies = { }; var devDependencies = { "@rollup/plugin-alias": "^5.1.1", - "@rollup/plugin-commonjs": "^28.0.6", + "@rollup/plugin-commonjs": "^28.0.8", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-replace": "^6.0.2", "@rollup/plugin-terser": "^0.4.4", "@types/fs-extra": "^11.0.4", - "@types/node": "^20.19.21", + "@types/node": "^20.19.23", "@types/page-icon": "^0.3.6", "@types/prompts": "^2.4.9", "@types/tmp": "^0.2.6", @@ -105,7 +105,7 @@ var devDependencies = { "app-root-path": "^3.1.0", "cross-env": "^7.0.3", prettier: "^3.6.2", - rollup: "^4.52.4", + rollup: "^4.52.5", "rollup-plugin-typescript2": "^0.36.0", tslib: "^2.8.1", typescript: "^5.9.3" @@ -470,7 +470,7 @@ async function mergeConfig(url, options, tauriConf) { await fsExtra.copy(sourcePath, destPath); } })); - const { width, height, fullscreen, maximize, hideTitleBar, alwaysOnTop, appVersion, darkMode, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true, inject, proxyUrl, installerLanguage, hideOnClose, incognito, title, wasm, enableDragDrop, multiInstance, startToTray, } = options; + const { width, height, fullscreen, maximize, hideTitleBar, alwaysOnTop, appVersion, darkMode, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true, inject, proxyUrl, installerLanguage, hideOnClose, incognito, title, wasm, enableDragDrop, multiInstance, startToTray, forceInternalNavigation, } = options; const { platform } = process; const platformHideOnClose = hideOnClose ?? platform === 'darwin'; const tauriConfWindowOptions = { @@ -490,6 +490,7 @@ async function mergeConfig(url, options, tauriConf) { enable_wasm: wasm, enable_drag_drop: enableDragDrop, start_to_tray: startToTray && showSystemTray, + force_internal_navigation: forceInternalNavigation, }; Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions }); tauriConf.productName = name; @@ -1331,6 +1332,7 @@ const DEFAULT_PAKE_OPTIONS = { keepBinary: false, multiInstance: false, startToTray: false, + forceInternalNavigation: false, }; async function checkUpdateTips() { @@ -1862,6 +1864,9 @@ program .addOption(new Option('--start-to-tray', 'Start app minimized to tray') .default(DEFAULT_PAKE_OPTIONS.startToTray) .hideHelp()) + .addOption(new Option('--force-internal-navigation', 'Keep every link inside the Pake window instead of opening external handlers') + .default(DEFAULT_PAKE_OPTIONS.forceInternalNavigation) + .hideHelp()) .addOption(new Option('--installer-language ', 'Installer language') .default(DEFAULT_PAKE_OPTIONS.installerLanguage) .hideHelp()) @@ -1888,6 +1893,7 @@ program return; } log.setDefaultLevel('info'); + log.setLevel('info'); if (options.debug) { log.setLevel('debug'); } diff --git a/package.json b/package.json index 46a3b29..7b760fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pake-cli", - "version": "3.4.4", + "version": "3.5.0", "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚", "engines": { "node": ">=18.0.0"