🐛 更新文档
This commit is contained in:
@@ -11,62 +11,75 @@ npm install -g pake-cli
|
|||||||
```bash
|
```bash
|
||||||
pake [options] url
|
pake [options] url
|
||||||
```
|
```
|
||||||
打包完成后的应用程序默认为当前工作目录。
|
|
||||||
|
打包完成后的应用程序默认为当前工作目录,首次打包由于需配置好环境,需要一些时间,请耐心等待即可。
|
||||||
|
|
||||||
Note: 打包需要用 `Rust` 环境,如果没有 `Rust`,会提示确认安装。如遇安装失败或超时,可[自行安装](https://www.rust-lang.org/tools/install)。
|
Note: 打包需要用 `Rust` 环境,如果没有 `Rust`,会提示确认安装。如遇安装失败或超时,可[自行安装](https://www.rust-lang.org/tools/install)。
|
||||||
|
|
||||||
Note: 目前仅支持 MacOs,后续会支持其他平台。
|
Note: 目前仅支持 MacOs,后续会支持其他平台。
|
||||||
|
|
||||||
|
|
||||||
### url
|
### url
|
||||||
url 为你需要打包的网页链接🔗,必须提供。
|
|
||||||
|
url 为你需要打包的网页链接 🔗,必须提供。
|
||||||
|
|
||||||
### [options]
|
### [options]
|
||||||
|
|
||||||
提供了一些特定的选项,打包时可以传递对应参数达到定制化的效果。
|
提供了一些特定的选项,打包时可以传递对应参数达到定制化的效果。
|
||||||
|
|
||||||
#### [name]
|
#### [name]
|
||||||
|
|
||||||
应用名称,如输入时未指定,会提示你输入。
|
应用名称,如输入时未指定,会提示你输入。
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
--name <value>
|
--name <value>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### [icon]
|
#### [icon]
|
||||||
应用icon,支持本地/远程文件,默认为 Pake 自带图标。
|
|
||||||
- MacOS下必须为 `.icns`
|
应用 icon,支持本地/远程文件,默认为 Pake 自带图标。
|
||||||
|
|
||||||
|
- MacOS 下必须为 `.icns`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
--icon <path>
|
--icon <path>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### [height]
|
#### [height]
|
||||||
|
|
||||||
打包后的应用窗口高度,默认 `800px`。
|
打包后的应用窗口高度,默认 `800px`。
|
||||||
```
|
|
||||||
|
```shell
|
||||||
--height <number>
|
--height <number>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### [width]
|
#### [width]
|
||||||
|
|
||||||
打包后的应用窗口宽度,默认 `1280px`。
|
打包后的应用窗口宽度,默认 `1280px`。
|
||||||
```
|
|
||||||
|
```shell
|
||||||
--width <number>
|
--width <number>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### [transparent]
|
#### [transparent]
|
||||||
|
|
||||||
是否开启沉浸式头部,默认为 `false` 不开启。
|
是否开启沉浸式头部,默认为 `false` 不开启。
|
||||||
```
|
|
||||||
|
```shell
|
||||||
--transparent
|
--transparent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### [resize]
|
#### [resize]
|
||||||
|
|
||||||
是否可以拖动大小,默认为 `true` 可拖动。
|
是否可以拖动大小,默认为 `true` 可拖动。
|
||||||
```
|
|
||||||
|
```shell
|
||||||
--no-resizable
|
--no-resizable
|
||||||
```
|
```
|
||||||
|
|
||||||
#### [fullscreen]
|
#### [fullscreen]
|
||||||
|
|
||||||
打开应用后是否开启全屏,默认为 `false`。
|
打开应用后是否开启全屏,默认为 `false`。
|
||||||
```
|
|
||||||
|
```shell
|
||||||
--fullscreen <value>
|
--fullscreen <value>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user