From 7dadac67edfd4b510a9851cb95435989ed0edb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E5=9F=8E=E8=90=BD=E5=AF=9E?= Date: Fri, 29 Oct 2021 06:38:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=80=E5=8F=91=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=EF=BC=8Creadmd=20=E6=96=87=E4=BB=B6=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme_zh.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/readme_zh.md b/readme_zh.md index 2cc2941..19f5348 100644 --- a/readme_zh.md +++ b/readme_zh.md @@ -1,22 +1,28 @@ # BS Redis Desktop Client +> BS Redis Desktop Client rust + tauri 版本 -## BS Redis Desktop Client rust + tauri 版本 - -## sciter库bug太多切换到tauri,欢迎测试使用。sciter版本功能搬迁完毕 +## 注意: sciter库bug太多切换到tauri,欢迎测试使用。sciter版本功能搬迁完毕 ## 开始开发 + +### 目录结构 + + `/src-tauri` 是 rust + [tauri](https://tauri.studio/) 主文件目录 + + `/ui` 是基于 [vue3](https://v3.vuejs.org/) + [element-plus](https://element-plus.org/zh-CN/) 的前端项目 + +### 初始化环境 + 首先安装tauri-cli工具 `cargo install tauri-cli --version ^1.0.0-beta` + 然后到ui目录执行 `yarn install` 或者 `npm install` 安装依赖, - 过后执行 `yarn dev` 或者 `npm run dev` 启动ui界面 - + 调试模式为在当前目录下执行 `cargo tauri dev` - + 打包方法为在当前目录下执行 `cargo tauri bulid` - + 更改图标到ui目录执行 `yarn tauri icon 图片绝对路径` 或者 `npm run tauri icon 图片绝对路径` -## 目录结构 - + `/src-tauri` 是 rust + [tauri](https://tauri.studio/) 主文件目录 - + `/ui` 是基于 [vue3](https://v3.vuejs.org/) + [element-plus](https://element-plus.org/zh-CN/) 的前端项目 +### 本地调试 + - 在ui目录中执行 `yarn dev` 或者 `npm run dev` 启动ui界面 + - 在另起一个窗口,在当前目录下执行 `cargo tauri dev` + +### 其他 + - 项目打包:为在当前目录下执行 `cargo tauri build` + - 更改图标:在ui目录执行 `yarn tauri icon 图片绝对路径` 或者 `npm run tauri icon 图片绝对路径` + ## 欢迎各位有兴趣的朋友提交PR -- Gitee