@@ -20,7 +20,7 @@ import psl from 'psl';
2020import isUrl from 'is-url' ;
2121
2222var name = "pake-cli" ;
23- var version = "2.5.2 " ;
23+ var version = "2.6.0 " ;
2424var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。" ;
2525var engines = {
2626 node : ">=16.0.0"
@@ -67,31 +67,31 @@ var type = "module";
6767var exports = "./dist/pake.js" ;
6868var license = "MIT" ;
6969var dependencies = {
70- "@tauri-apps/api" : "^1.5.4 " ,
71- "@tauri-apps/cli" : "^1.5.13 " ,
72- axios : "^1.6.8 " ,
70+ "@tauri-apps/api" : "^1.6.0 " ,
71+ "@tauri-apps/cli" : "^1.6.1 " ,
72+ axios : "^1.7.7 " ,
7373 chalk : "^5.3.0" ,
7474 commander : "^11.1.0" ,
7575 "file-type" : "^18.7.0" ,
7676 "fs-extra" : "^11.2.0" ,
7777 "is-url" : "^1.2.4" ,
78- loglevel : "^1.9.1 " ,
78+ loglevel : "^1.9.2 " ,
7979 ora : "^7.0.1" ,
8080 prompts : "^2.4.2" ,
8181 psl : "^1.9.0" ,
8282 shelljs : "^0.8.5" ,
8383 "tmp-promise" : "^3.0.3" ,
84- "update-notifier" : "^7.0.0 "
84+ "update-notifier" : "^7.3.1 "
8585} ;
8686var devDependencies = {
8787 "@rollup/plugin-alias" : "^5.1.0" ,
88- "@rollup/plugin-commonjs" : "^25.0.7 " ,
88+ "@rollup/plugin-commonjs" : "^25.0.8 " ,
8989 "@rollup/plugin-json" : "^6.1.0" ,
90- "@rollup/plugin-replace" : "^5.0.5 " ,
90+ "@rollup/plugin-replace" : "^5.0.7 " ,
9191 "@rollup/plugin-terser" : "^0.4.4" ,
9292 "@types/fs-extra" : "^11.0.4" ,
9393 "@types/is-url" : "^1.2.32" ,
94- "@types/node" : "^20.12.10 " ,
94+ "@types/node" : "^20.16.5 " ,
9595 "@types/page-icon" : "^0.3.6" ,
9696 "@types/prompts" : "^2.4.9" ,
9797 "@types/psl" : "^1.1.3" ,
@@ -100,10 +100,10 @@ var devDependencies = {
100100 "@types/update-notifier" : "^6.0.8" ,
101101 "app-root-path" : "^3.1.0" ,
102102 "cross-env" : "^7.0.3" ,
103- rollup : "^4.17.2 " ,
103+ rollup : "^4.21.3 " ,
104104 "rollup-plugin-typescript2" : "^0.36.0" ,
105- tslib : "^2.6.2 " ,
106- typescript : "^5.4.5 "
105+ tslib : "^2.7.0 " ,
106+ typescript : "^5.6.2 "
107107} ;
108108var packageJson = {
109109 name : name ,
@@ -132,6 +132,7 @@ var windows = [
132132 width : 1200 ,
133133 height : 780 ,
134134 resizable : true ,
135+ dark_mode : false ,
135136 always_on_top : false ,
136137 activation_shortcut : "" ,
137138 disabled_web_shortcuts : false
@@ -476,7 +477,7 @@ async function combineFiles(files, output) {
476477}
477478
478479async function mergeConfig ( url , options , tauriConf ) {
479- const { width, height, fullscreen, hideTitleBar, alwaysOnTop, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true , inject, safeDomain, installerLanguage, } = options ;
480+ const { width, height, fullscreen, hideTitleBar, alwaysOnTop, darkMode , disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true , inject, safeDomain, installerLanguage, } = options ;
480481 const { platform } = process ;
481482 // Set Windows parameters.
482483 const tauriConfWindowOptions = {
@@ -487,6 +488,7 @@ async function mergeConfig(url, options, tauriConf) {
487488 hide_title_bar : hideTitleBar ,
488489 activation_shortcut : activationShortcut ,
489490 always_on_top : alwaysOnTop ,
491+ dark_mode : darkMode ,
490492 disabled_web_shortcuts : disabledWebShortcuts ,
491493 } ;
492494 Object . assign ( tauriConf . pake . windows [ 0 ] , { url, ...tauriConfWindowOptions } ) ;
@@ -837,6 +839,7 @@ const DEFAULT_PAKE_OPTIONS = {
837839 resizable : true ,
838840 hideTitleBar : false ,
839841 alwaysOnTop : false ,
842+ darkMode : false ,
840843 disabledWebShortcuts : false ,
841844 activationShortcut : '' ,
842845 userAgent : '' ,
@@ -1037,6 +1040,7 @@ program
10371040 . addOption ( new Option ( '--user-agent <string>' , 'Custom user agent' ) . default ( DEFAULT_PAKE_OPTIONS . userAgent ) . hideHelp ( ) )
10381041 . addOption ( new Option ( '--targets <string>' , 'Only for Linux, option "deb" or "appimage"' ) . default ( DEFAULT_PAKE_OPTIONS . targets ) . hideHelp ( ) )
10391042 . addOption ( new Option ( '--always-on-top' , 'Always on the top level' ) . default ( DEFAULT_PAKE_OPTIONS . alwaysOnTop ) . hideHelp ( ) )
1043+ . addOption ( new Option ( '--dark-mode' , 'Force Mac app to use dark mode' ) . default ( DEFAULT_PAKE_OPTIONS . darkMode ) . hideHelp ( ) )
10401044 . addOption ( new Option ( '--disabled-web-shortcuts' , 'Disabled webPage shortcuts' )
10411045 . default ( DEFAULT_PAKE_OPTIONS . disabledWebShortcuts )
10421046 . hideHelp ( ) )
0 commit comments