add zoom,min-height,min-width params

This commit is contained in:
Tw93
2025-11-21 10:53:59 +08:00
parent 9c7330143a
commit f7a24bb26f
10 changed files with 200 additions and 1 deletions

34
docs/cli-usage_CN.md vendored
View File

@@ -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
```
### 打包完成
完成上述步骤后,您的应用程序应该已经成功打包。请注意,根据您的系统配置和网络状况,打包过程可能需要一些时间。请耐心等待,一旦打包完成,您就可以在指定的目录中找到应用程序安装包。