update pake-cli document

This commit is contained in:
Tlntin
2023-03-18 11:45:33 +08:00
parent 214178da7a
commit 277a9842fe
3 changed files with 31 additions and 52 deletions

16
bin/README.md vendored
View File

@@ -132,14 +132,6 @@ url 为你需要打包的网页链接 🔗,必须提供。
打包结果同时支持英特尔和 m1 芯片,仅适用于 MacOS默认为 `false`。
#### [targets]
选择输出的包格式支持deb/appimage/all如果选择all,则同时打包deb和appimage该选项仅支持Linux默认为`all`。
```shell
--targets xxx
```
##### 准备工作
- 注意:开启该选项后,需要用 rust 官网的 rustup 安装 rust不支持 brew 安装。
@@ -162,3 +154,11 @@ rustup target add x86_64-apple-darwin
# 或者
-m
```
#### [targets]
选择输出的包格式支持deb/appimage/all如果选择all,则同时打包deb和appimage该选项仅支持Linux默认为`all`。
```shell
--targets xxx
```

8
bin/README_EN.md vendored
View File

@@ -134,10 +134,6 @@ Use the command below to disable this feature.
Package results support both Intel and m1 chips, only for MacOS. The default is `false`.
#### [targets]
Select the output package format, support deb/appimage/all, if all is selected, deb and appimage will be packaged at the same time, this option only supports Linux, the default is `all`.
```shell
--targets xxx
```
@@ -164,3 +160,7 @@ rustup target add x86_64-apple-darwin
# or
-m
```
#### [targets]
Select the output package format, support deb/appimage/all, if all is selected, deb and appimage will be packaged at the same time, this option only supports Linux, the default is `all`.

59
dist/cli.js vendored
View File

@@ -1837,8 +1837,8 @@ function checkRustInstalled() {
var tauri$3 = {
windows: [
{
url: "https://www.baidu.com",
transparent: false,
url: "https://weread.qq.com/",
transparent: true,
fullscreen: false,
width: 1200,
height: 780,
@@ -1850,46 +1850,21 @@ var tauri$3 = {
},
updater: {
active: false
},
bundle: {
icon: [
"/home/tlntin/data/code/rust_study/pake-tw93/Pake/src-tauri/png/icon_512.png"
],
identifier: "pake-f9751d",
active: true,
category: "DeveloperTool",
copyright: "",
deb: {
depends: [
"libwebkit2gtk-4.0-dev",
"build-essential",
"curl",
"wget",
"libssl-dev",
"libgtk-3-dev",
"libayatana-appindicator3-dev",
"librsvg2-dev",
"gnome-video-effects",
"gnome-video-effects-extra"
]
},
externalBin: [
],
longDescription: "",
resources: [
],
shortDescription: "",
targets: [
"deb"
]
}
};
var build = {
devPath: "../dist",
distDir: "../dist",
beforeBuildCommand: "",
beforeDevCommand: ""
};
var CommonConf = {
"package": {
productName: "baidu",
productName: "WeRead",
version: "1.0.0"
},
tauri: tauri$3
tauri: tauri$3,
build: build
};
var tauri$2 = {
@@ -1964,9 +1939,9 @@ var MacConf = {
var tauri = {
bundle: {
icon: [
"/home/tlntin/data/code/rust_study/pake-tw93/Pake/src-tauri/png/icon_512.png"
"png/weread_512.png"
],
identifier: "pake-f9751d",
identifier: "com.tw93.weread",
active: true,
category: "DeveloperTool",
copyright: "",
@@ -1982,7 +1957,10 @@ var tauri = {
"librsvg2-dev",
"gnome-video-effects",
"gnome-video-effects-extra"
]
],
files: {
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"
}
},
externalBin: [
],
@@ -1991,7 +1969,8 @@ var tauri = {
],
shortDescription: "",
targets: [
"deb"
"deb",
"appimage"
]
}
};