Add the multi_arch parameter of the master branch to the pake-cli

This commit is contained in:
Tlntin
2023-04-08 11:18:48 +08:00
parent 709f7532a4
commit da615bb1c7
6 changed files with 104 additions and 15 deletions

36
bin/README.md vendored
View File

@@ -128,4 +128,40 @@ url 为你需要打包的网页链接 🔗或者本地html文件必须提供
```shell
--copy-iter-file
```
#### [multi-arch]
打包结果同时支持英特尔和 m1 芯片,仅适用于 MacOS默认为 `false`
##### 准备工作
- 注意:开启该选项后,需要用 rust 官网的 rustup 安装 rust不支持 brew 安装。
- 对于 intel 芯片用户,需要安装 arm64 跨平台包,使安装包支持 m1 芯片,使用下面命令安装。
```shell
rustup target add aarch64-apple-darwin
```
- 对于 M1 芯片用户,需要安装 x86 跨平台包,使安装包支持 interl 芯片,使用下面的命令安装。
```shell
rustup target add x86_64-apple-darwin
```
##### 使用方法
```shell
--multi-arch
# 或者
-m
```
#### [targets]
选择输出的包格式支持deb/appimage/all如果选择all,则同时打包deb和appimage该选项仅支持Linux默认为`all`
```shell
--targets xxx
```