From 277a9842fe36d711f6fff5dfb168de843e30cbfe Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sat, 18 Mar 2023 11:45:33 +0800 Subject: [PATCH] update pake-cli document --- bin/README.md | 16 ++++++------- bin/README_EN.md | 8 +++---- dist/cli.js | 59 ++++++++++++++++-------------------------------- 3 files changed, 31 insertions(+), 52 deletions(-) diff --git a/bin/README.md b/bin/README.md index dfd8ae6..8db03ec 100644 --- a/bin/README.md +++ b/bin/README.md @@ -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 +``` diff --git a/bin/README_EN.md b/bin/README_EN.md index ad98b54..b0e4859 100644 --- a/bin/README_EN.md +++ b/bin/README_EN.md @@ -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`. diff --git a/dist/cli.js b/dist/cli.js index ae72f11..fc48d66 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -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" ] } };