-
Notifications
You must be signed in to change notification settings - Fork 59.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tauri v2 and mobile platforms #5927
Open
04041b
wants to merge
13
commits into
ChatGPTNextWeb:main
Choose a base branch
from
04041b:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
027ccd2
upgrade to tauri v2
04041b cfaa0b5
wip commit
04041b 3e09093
fix file name collision error
04041b 58f103e
fix invoke in stream.ts, upgrade package
04041b be9c6e5
choose plugin by platform
04041b cdec56e
update api
04041b 7c23a39
Revert "update api"
04041b 571920a
update __TAURI__ api
04041b 72c5665
ios version
04041b 0186166
update versions in markdown, download link unavailble
04041b da7e206
build instruction
04041b c6b8fbc
fix android realtime permission
04041b 01452c5
export feature should now work properly
04041b File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ For enterprise inquiries, please contact: **[email protected]** | |
## Features | ||
|
||
- **Deploy for free with one-click** on Vercel in under 1 minute | ||
- Compact client (~5MB) on Linux/Windows/MacOS, [download it now](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) | ||
- Compact client (~5MB) on Linux/Windows/MacOS/IOS/Android, [download it now](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) | ||
- Fully compatible with self-deployed LLMs, recommended for use with [RWKV-Runner](https://github.com/josStorer/RWKV-Runner) or [LocalAI](https://github.com/go-skynet/LocalAI) | ||
- Privacy first, all data is stored locally in the browser | ||
- Markdown support: LaTex, mermaid, code highlight, etc. | ||
|
@@ -113,7 +113,7 @@ For enterprise inquiries, please contact: **[email protected]** | |
## 主要功能 | ||
|
||
- 在 1 分钟内使用 Vercel **免费一键部署** | ||
- 提供体积极小(~5MB)的跨平台客户端(Linux/Windows/MacOS), [下载地址](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) | ||
- 提供体积极小(~5MB)的跨平台客户端(Linux/Windows/MacOS/IOS/Android), [下载地址](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) | ||
- 完整的 Markdown 支持:LaTex 公式、Mermaid 流程图、代码高亮等等 | ||
- 精心设计的 UI,响应式设计,支持深色模式,支持 PWA | ||
- 极快的首屏加载速度(~100kb),支持流式响应 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Build Instruction for IOS and Android | ||
## Android | ||
Run command | ||
``` | ||
yarn | ||
yarn tauri android build | ||
``` | ||
## IOS | ||
IOS build requires Mac and a developer account or ios certificate. | ||
See [here](https://tauri.app/distribute/sign/ios/) for detail.\ | ||
After you have the signing requirement. Run command to build | ||
``` | ||
yarn | ||
yarn tauri ios build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Inconsistent dialog API usage found in codebase
The codebase shows two different patterns for using the dialog API:
app/utils.ts
: Usingwindow.__TAURI__.dialog.save
app/components/exporter.tsx
: Usingwindow.__TAURI__.core.dialog.save
This inconsistency needs to be addressed:
app/utils.ts
needs to be updated to use the newcore
namespace patternglobal.d.ts
should be moved under thecore
namespace to match the actual usage inexporter.tsx
🔗 Analysis chain
Review dialog API placement and mobile compatibility
Two concerns to address:
dialog
API remains outside thecore
namespace while other APIs have been moved inside. Consider moving it to maintain consistency with the new structure.dialog.save
method, consider adding platform-specific type guards.Run the following script to check how dialog API is used across the codebase:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 193
Script:
Length of output: 947