@@ -20,7 +20,7 @@ import psl from 'psl';
20
20
import isUrl from 'is-url' ;
21
21
22
22
var name = "pake-cli" ;
23
- var version = "2.5.2 " ;
23
+ var version = "2.6.0 " ;
24
24
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。" ;
25
25
var engines = {
26
26
node : ">=16.0.0"
@@ -67,31 +67,31 @@ var type = "module";
67
67
var exports = "./dist/pake.js" ;
68
68
var license = "MIT" ;
69
69
var 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 " ,
73
73
chalk : "^5.3.0" ,
74
74
commander : "^11.1.0" ,
75
75
"file-type" : "^18.7.0" ,
76
76
"fs-extra" : "^11.2.0" ,
77
77
"is-url" : "^1.2.4" ,
78
- loglevel : "^1.9.1 " ,
78
+ loglevel : "^1.9.2 " ,
79
79
ora : "^7.0.1" ,
80
80
prompts : "^2.4.2" ,
81
81
psl : "^1.9.0" ,
82
82
shelljs : "^0.8.5" ,
83
83
"tmp-promise" : "^3.0.3" ,
84
- "update-notifier" : "^7.0.0 "
84
+ "update-notifier" : "^7.3.1 "
85
85
} ;
86
86
var devDependencies = {
87
87
"@rollup/plugin-alias" : "^5.1.0" ,
88
- "@rollup/plugin-commonjs" : "^25.0.7 " ,
88
+ "@rollup/plugin-commonjs" : "^25.0.8 " ,
89
89
"@rollup/plugin-json" : "^6.1.0" ,
90
- "@rollup/plugin-replace" : "^5.0.5 " ,
90
+ "@rollup/plugin-replace" : "^5.0.7 " ,
91
91
"@rollup/plugin-terser" : "^0.4.4" ,
92
92
"@types/fs-extra" : "^11.0.4" ,
93
93
"@types/is-url" : "^1.2.32" ,
94
- "@types/node" : "^20.12.10 " ,
94
+ "@types/node" : "^20.16.5 " ,
95
95
"@types/page-icon" : "^0.3.6" ,
96
96
"@types/prompts" : "^2.4.9" ,
97
97
"@types/psl" : "^1.1.3" ,
@@ -100,10 +100,10 @@ var devDependencies = {
100
100
"@types/update-notifier" : "^6.0.8" ,
101
101
"app-root-path" : "^3.1.0" ,
102
102
"cross-env" : "^7.0.3" ,
103
- rollup : "^4.17.2 " ,
103
+ rollup : "^4.21.3 " ,
104
104
"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 "
107
107
} ;
108
108
var packageJson = {
109
109
name : name ,
@@ -132,6 +132,7 @@ var windows = [
132
132
width : 1200 ,
133
133
height : 780 ,
134
134
resizable : true ,
135
+ dark_mode : false ,
135
136
always_on_top : false ,
136
137
activation_shortcut : "" ,
137
138
disabled_web_shortcuts : false
@@ -476,7 +477,7 @@ async function combineFiles(files, output) {
476
477
}
477
478
478
479
async 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 ;
480
481
const { platform } = process ;
481
482
// Set Windows parameters.
482
483
const tauriConfWindowOptions = {
@@ -487,6 +488,7 @@ async function mergeConfig(url, options, tauriConf) {
487
488
hide_title_bar : hideTitleBar ,
488
489
activation_shortcut : activationShortcut ,
489
490
always_on_top : alwaysOnTop ,
491
+ dark_mode : darkMode ,
490
492
disabled_web_shortcuts : disabledWebShortcuts ,
491
493
} ;
492
494
Object . assign ( tauriConf . pake . windows [ 0 ] , { url, ...tauriConfWindowOptions } ) ;
@@ -837,6 +839,7 @@ const DEFAULT_PAKE_OPTIONS = {
837
839
resizable : true ,
838
840
hideTitleBar : false ,
839
841
alwaysOnTop : false ,
842
+ darkMode : false ,
840
843
disabledWebShortcuts : false ,
841
844
activationShortcut : '' ,
842
845
userAgent : '' ,
@@ -1037,6 +1040,7 @@ program
1037
1040
. addOption ( new Option ( '--user-agent <string>' , 'Custom user agent' ) . default ( DEFAULT_PAKE_OPTIONS . userAgent ) . hideHelp ( ) )
1038
1041
. addOption ( new Option ( '--targets <string>' , 'Only for Linux, option "deb" or "appimage"' ) . default ( DEFAULT_PAKE_OPTIONS . targets ) . hideHelp ( ) )
1039
1042
. 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 ( ) )
1040
1044
. addOption ( new Option ( '--disabled-web-shortcuts' , 'Disabled webPage shortcuts' )
1041
1045
. default ( DEFAULT_PAKE_OPTIONS . disabledWebShortcuts )
1042
1046
. hideHelp ( ) )
0 commit comments