Files
Pake/bin/README.md
2022-11-22 23:21:01 +08:00

73 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 安装
```bash
npm install -g pake-cli
```
如果安装失败提示没有权限,请使用 `sudo` 运行。
## 用法
```bash
pake [options] url
```
打包完成后的应用程序默认为当前工作目录。
Note: 打包需要用 `Rust` 环境,如果没有 `Rust`,会提示确认安装。如遇安装失败或超时,可[自行安装](https://www.rust-lang.org/tools/install)。
Note: 目前仅支持 MacOs后续会支持其他平台。
### url
url 为你需要打包的网页链接🔗,必须提供。
### [options]
提供了一些特定的选项,打包时可以传递对应参数达到定制化的效果。
#### [name]
应用名称,如输入时未指定,会提示你输入。
```shell
--name <value>
```
#### [icon]
应用icon支持本地/远程文件,默认为 Pake 自带图标。
- MacOS下必须为 `.icns`
```shell
--icon <path>
```
#### [height]
打包后的应用窗口高度,默认 `800px`
```
--height <number>
```
#### [width]
打包后的应用窗口宽度,默认 `1280px`
```
--width <number>
```
#### [transparent]
是否开启沉浸式头部,默认为 `false` 不开启。
```
--transparent
```
#### [resize]
是否可以拖动大小,默认为 `true` 可拖动。
```
--no-resizable
```
#### [fullscreen]
打开应用后是否开启全屏,默认为 `false`
```
--fullscreen <value>
```