更新pake-cli文档

This commit is contained in:
Tlntin
2022-12-29 00:06:59 +08:00
parent 88f3a9ada6
commit f6223869cf
3 changed files with 13 additions and 13 deletions

14
bin/README.md vendored
View File

@@ -67,7 +67,7 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [transparent]
是否开启沉浸式头部,默认为 `false` 不开启。
是否开启沉浸式头部,默认为 `false` 不开启输入下面的命令则开启沉浸式推荐MacOS用户开启
```shell
--transparent
@@ -75,7 +75,7 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [resize]
是否可以拖动大小,默认为 `true` 可拖动。
是否可以拖动大小,默认为 `true` 可拖动,输入下面的命令则不能对窗口大小进行拉伸
```shell
--no-resizable
@@ -83,10 +83,10 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [fullscreen]
打开应用后是否开启全屏,默认为 `false`
打开应用后是否开启全屏,默认为 `false`,输入下面的命令则会自动全屏
```shell
--fullscreen <value>
--fullscreen
```
#### [user-agent]
@@ -99,7 +99,7 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [show-menu]
显示菜单栏, 默认不显示
显示菜单栏, 默认不显示输入下面的命令则会显示推荐MacOS用户开启。
```shell
--show-menu
@@ -107,10 +107,10 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [show-system-tray]
显示通知栏托盘, 默认不显示
显示通知栏托盘, 默认不显示,输入下面的命令则会显示。
```shell
--show-system-tray <value>
--show-system-tray
```
#### [system-tray-icon]

10
bin/README_EN.md vendored
View File

@@ -66,7 +66,7 @@ The width of the packaged application window. The default is `1200px`.
#### [transparent]
Whether to enable the immersive header. The default is `false`.
Whether to enable the immersive header. The default is `false`, enter the following command to enable immersive, recommended for MacOS users to enable
```shell
--transparent
@@ -74,7 +74,7 @@ Whether to enable the immersive header. The default is `false`.
#### [resize]
Whether the size can be dragged. The default value is `true`.
Whether the size can be dragged. The default value is `true`, the window size cannot be stretched by entering the following command.
```shell
--no-resizable
@@ -82,7 +82,7 @@ Whether the size can be dragged. The default value is `true`.
#### [fullscreen]
Whether to open the full screen after opening the application. The default is `false`.
Whether to open the full screen after opening the application. The default is `false`, enter the following command to automatically full screen
```shell
--fullscreen <value>
@@ -98,7 +98,7 @@ Custom browser user agent, default is empty.
#### [show-menu]
Display the menu bar, not display it by default.
Display the menu bar, not display it by default, enter the following command and it will be displayed. MacOS users are recommended to enable.
```shell
--show-menu
@@ -106,7 +106,7 @@ Display the menu bar, not display it by default.
#### [show-system-tray]
Display the notification tray, not display it by default.
Display the notification tray, not display it by default, entering the following command will display.
```shell
--show-system-tray <value>

2
bin/cli.ts vendored
View File

@@ -48,7 +48,7 @@ program
await builder.prepare();
const appOptions = await handleInputOptions(options, url);
// logger.warn(JSON.stringify(appOptions, null, 4));
logger.warn(JSON.stringify(appOptions, null, 4));
builder.build(url, appOptions);
});