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.
一些注解:
tauri 用的运行时暂时不支持
navigator.permissions.query
,所以我加了个判断。目前剪贴板不能用。为了方便,开发时我把
pnpm run build
后的Ctool/packages/ctool-core/dist/*
复制到了Ctool/packages/ctool-adapter/tauri-app/src/
里进行调试。但是不能就这么提交。所以先把 src 清空了。只需要 build tauri 前把 pnpm run build 的产物移过来。应该是 package.json 加一条命令。看上去 electron 也是这么操作的,具体逻辑还没太看懂。
另一种方法是 https://github.com/tw93/Pake 或 https://github.com/hamza72x/nativefier_tauri 直接封装 gh-page(不需要改动项目), 但也需要预判断
navigator.permissions.query
232a05c