@@ -23,7 +23,7 @@ import sharp from 'sharp';
2323import * as psl from 'psl' ;
2424
2525var name = "pake-cli" ;
26- var version = "3.4.2 " ;
26+ var version = "3.5.0 " ;
2727var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。" ;
2828var engines = {
2929 node : ">=18.0.0"
@@ -73,8 +73,8 @@ var type = "module";
7373var exports = "./dist/cli.js" ;
7474var license = "MIT" ;
7575var dependencies = {
76- "@tauri-apps/api" : "^2.8 .0" ,
77- "@tauri-apps/cli" : "^2.8.4 " ,
76+ "@tauri-apps/api" : "^2.9 .0" ,
77+ "@tauri-apps/cli" : "^2.9.0 " ,
7878 axios : "^1.12.2" ,
7979 chalk : "^5.6.2" ,
8080 commander : "^12.1.0" ,
@@ -92,20 +92,20 @@ var dependencies = {
9292} ;
9393var devDependencies = {
9494 "@rollup/plugin-alias" : "^5.1.1" ,
95- "@rollup/plugin-commonjs" : "^28.0.6 " ,
95+ "@rollup/plugin-commonjs" : "^28.0.8 " ,
9696 "@rollup/plugin-json" : "^6.1.0" ,
9797 "@rollup/plugin-replace" : "^6.0.2" ,
9898 "@rollup/plugin-terser" : "^0.4.4" ,
9999 "@types/fs-extra" : "^11.0.4" ,
100- "@types/node" : "^20.19.21 " ,
100+ "@types/node" : "^20.19.23 " ,
101101 "@types/page-icon" : "^0.3.6" ,
102102 "@types/prompts" : "^2.4.9" ,
103103 "@types/tmp" : "^0.2.6" ,
104104 "@types/update-notifier" : "^6.0.8" ,
105105 "app-root-path" : "^3.1.0" ,
106106 "cross-env" : "^7.0.3" ,
107107 prettier : "^3.6.2" ,
108- rollup : "^4.52.4 " ,
108+ rollup : "^4.52.5 " ,
109109 "rollup-plugin-typescript2" : "^0.36.0" ,
110110 tslib : "^2.8.1" ,
111111 typescript : "^5.9.3"
@@ -470,7 +470,7 @@ async function mergeConfig(url, options, tauriConf) {
470470 await fsExtra . copy ( sourcePath , destPath ) ;
471471 }
472472 } ) ) ;
473- 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 ;
473+ 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 ;
474474 const { platform } = process ;
475475 const platformHideOnClose = hideOnClose ?? platform === 'darwin' ;
476476 const tauriConfWindowOptions = {
@@ -490,6 +490,7 @@ async function mergeConfig(url, options, tauriConf) {
490490 enable_wasm : wasm ,
491491 enable_drag_drop : enableDragDrop ,
492492 start_to_tray : startToTray && showSystemTray ,
493+ force_internal_navigation : forceInternalNavigation ,
493494 } ;
494495 Object . assign ( tauriConf . pake . windows [ 0 ] , { url, ...tauriConfWindowOptions } ) ;
495496 tauriConf . productName = name ;
@@ -1331,6 +1332,7 @@ const DEFAULT_PAKE_OPTIONS = {
13311332 keepBinary : false ,
13321333 multiInstance : false ,
13331334 startToTray : false ,
1335+ forceInternalNavigation : false ,
13341336} ;
13351337
13361338async function checkUpdateTips ( ) {
@@ -1862,6 +1864,9 @@ program
18621864 . addOption ( new Option ( '--start-to-tray' , 'Start app minimized to tray' )
18631865 . default ( DEFAULT_PAKE_OPTIONS . startToTray )
18641866 . hideHelp ( ) )
1867+ . addOption ( new Option ( '--force-internal-navigation' , 'Keep every link inside the Pake window instead of opening external handlers' )
1868+ . default ( DEFAULT_PAKE_OPTIONS . forceInternalNavigation )
1869+ . hideHelp ( ) )
18651870 . addOption ( new Option ( '--installer-language <string>' , 'Installer language' )
18661871 . default ( DEFAULT_PAKE_OPTIONS . installerLanguage )
18671872 . hideHelp ( ) )
@@ -1888,6 +1893,7 @@ program
18881893 return ;
18891894 }
18901895 log . setDefaultLevel ( 'info' ) ;
1896+ log . setLevel ( 'info' ) ;
18911897 if ( options . debug ) {
18921898 log . setLevel ( 'debug' ) ;
18931899 }
0 commit comments