add a simple desktop frontend implement base rust+tauri #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加一个简单的桌面版本实现。其实就是为web ui提供一个类似Electron的容器,复用web ui前端,提供桌面app的用户体验。
这里选用tauri 作为webview容器,简单的构建出一个桌面app。
为什么选择tauri作为webview容器?
简单、小、够用。 构建出的app在Macos 中只有8.2MB,比较小。
构建桌面端需要什么环境?
tauri是Rust编写的,所以需要一个Rust编译环境。
目前实现状态?
初步实现状态,仅仅提供一个webview环境给web ui使用,还需要后续完善,比如桌面图标还没有与web同步,是随便找的一个图标暂时替代的。
预览效果: