add zoom,min-height,min-width params
This commit is contained in:
34
docs/cli-usage.md
vendored
34
docs/cli-usage.md
vendored
@@ -138,6 +138,32 @@ Set the width of the application window. Default is `1200px`.
|
||||
--width <number>
|
||||
```
|
||||
|
||||
#### [min-width]
|
||||
|
||||
Set the minimum width that the window can be resized to. Keeps layouts usable when the window is dragged small.
|
||||
|
||||
```shell
|
||||
--min-width <number>
|
||||
```
|
||||
|
||||
#### [min-height]
|
||||
|
||||
Set the minimum height that the window can be resized to. Prevents UI breakage caused by very short windows.
|
||||
|
||||
```shell
|
||||
--min-height <number>
|
||||
```
|
||||
|
||||
#### [zoom]
|
||||
|
||||
Set initial page zoom level (50-200). Default is `100`. Users can still adjust with `Cmd/Ctrl +/-/0` shortcuts.
|
||||
|
||||
```shell
|
||||
--zoom <number>
|
||||
--zoom 80 # 80%
|
||||
--zoom 120 # 120%
|
||||
```
|
||||
|
||||
#### [hide-title-bar]
|
||||
|
||||
Enable or disable immersive header. Default is `false`. Use the following command to enable this feature, macOS only.
|
||||
@@ -439,6 +465,14 @@ Enable developer tools and detailed logging for debugging.
|
||||
--debug
|
||||
```
|
||||
|
||||
#### [ignore-certificate-errors]
|
||||
|
||||
Ignore TLS certificate validation errors when loading the target URL. Useful for intranet apps, dev servers, or self-signed certificates.
|
||||
|
||||
```shell
|
||||
--ignore-certificate-errors
|
||||
```
|
||||
|
||||
### Packaging Complete
|
||||
|
||||
After completing the above steps, your application should be successfully packaged. Please note that the packaging process may take some time depending on your system configuration and network conditions. Be patient, and once the packaging is complete, you can find the application installer in the specified directory.
|
||||
|
||||
34
docs/cli-usage_CN.md
vendored
34
docs/cli-usage_CN.md
vendored
@@ -138,6 +138,32 @@ pake https://github.com --name GitHub
|
||||
--width <number>
|
||||
```
|
||||
|
||||
#### [min-width]
|
||||
|
||||
设置窗口可以缩放到的最小宽度,防止窗口被拖得过小导致控件错位。
|
||||
|
||||
```shell
|
||||
--min-width <number>
|
||||
```
|
||||
|
||||
#### [min-height]
|
||||
|
||||
设置窗口可以缩放到的最小高度,避免界面内容因高度过小而错乱。
|
||||
|
||||
```shell
|
||||
--min-height <number>
|
||||
```
|
||||
|
||||
#### [zoom]
|
||||
|
||||
设置初始页面缩放级别(50-200),默认为 `100`。用户仍可通过快捷键(`Cmd/Ctrl +/-/0`)调整。
|
||||
|
||||
```shell
|
||||
--zoom <number>
|
||||
--zoom 80 # 80%
|
||||
--zoom 120 # 120%
|
||||
```
|
||||
|
||||
#### [hide-title-bar]
|
||||
|
||||
设置是否启用沉浸式头部,默认为 `false`(不启用)。当前只对 macOS 上有效。
|
||||
@@ -437,6 +463,14 @@ pake ./my-app/index.html --name "my-app" --use-local-file
|
||||
--debug
|
||||
```
|
||||
|
||||
#### [ignore-certificate-errors]
|
||||
|
||||
忽略目标 URL 的 TLS 证书校验错误,适用于内网应用、开发环境、自签名证书。
|
||||
|
||||
```shell
|
||||
--ignore-certificate-errors
|
||||
```
|
||||
|
||||
### 打包完成
|
||||
|
||||
完成上述步骤后,您的应用程序应该已经成功打包。请注意,根据您的系统配置和网络状况,打包过程可能需要一些时间。请耐心等待,一旦打包完成,您就可以在指定的目录中找到应用程序安装包。
|
||||
|
||||
Reference in New Issue
Block a user