BetterChatGPT
BetterChatGPT copied to clipboard
Use tauri bundle
Fix: https://github.com/ztjhz/BetterChatGPT/issues/187
The file is now officially built and can be used, and an example is available at https://github.com/jiawei397/FreeChatGPT/releases. These files can be downloaded, installed, and used.
The existing code will not affect the original web usage. If you have local Rust
installed, you can use yarn dev:tauri
to start and yarn build:tauri
to complete the build.
There are several areas that require further processing by the author:
- The Github build file
github/workflows/release.yml
has been set to publish when tagging, and it can be considered for removal. The advantage ofTauri
is that it generates relatively small resources, but the disadvantage is that it is also caused byRust
, which is very slow. It takes about 15 minutes in the Github pipeline. - Before each release build, it is necessary to modify the version number
package.version
in the filesrc-tauri/tauri.conf.json
. It may not be necessary if the technology of detecting version numbers for updating prompts is not used. You can also consider removing the tag title displayed on the release page from therelease.yml
file. I didn't study this carefully, just found a sample online. - Several icons in the path
src-tauri/icons
might need to be modified, and currently, the default Tauri icons are being used. - My several download methods all return Promise and might fail (though it is not highly likely). Therefore, when using them on the upper layer, I added a catch method and wrote a TODO, which can be considered to add error prompts there.
- Several Tauri exports have been implemented, including the original PDF, but there was an error during packaging. You have already commented out this feature, which was caused by a conflict with
topLevelAwait
. If you resolve it later, you can annotate my code insrc/utils/tauri.ts
.
By the way, due to the update of the deploy.yml
file, my fork project can no longer be built directly on GitHub and must be restored to its original version. However, regardless of the situation, it's still an excellent job. Thank you.
Amazing work! 🔥
Good job!