Repository navigation
i18n(zh-cn):translate /develop/index.mdx - #3332
Merged
Merged
Conversation
✅ Deploy Preview for tauri-v2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
我看到你提了几个pr,然后又关掉了,如果是因为检查不通过,你可以直接在自己的分支上修改,commit会自动同步到pr,然后会重新检查 |
KikkiZ
suggested changes
Jun 5, 2025
|
|
||
| 现在 [万事俱备](/start/),你已经可以使用Tauri运行应用。 | ||
|
|
||
| 如果你正在使用一个UI框架或JavaScript打包工具,你可能有权访问开发服务器, |
Contributor
There was a problem hiding this comment.
UI 和 JavaScript 这种英文单词前后可以添加一个空格,不跟中文直接连在一起的,后面也是一样的,URL/Tauri 这种
| 第一次执行这个命令时Rust包管理器可能会需要**一些时间**来下载并构建所有需要的包。 | ||
| 他们会被缓存,以后的构建会快得多,因为只有你的代码需要重新构建。 | ||
|
|
||
| Rust 构建完成后,网页视图会打开,显示你的网页应用。你可以对网页应用进行更改,如果你的工具支持,网页视图应该会自动更新,就像浏览器一样。 |
|
|
||
| #### 打开网页检查器 | ||
|
|
||
| 你可以打开网页检查器来调试你的应用,打开的方法是在网页视图上右键并点击 "Inspect" 或使用快捷键 `Ctrl + Shift + I`(Windows,Linux),`Cmd + Option + I`(macOS)。 |
| /> | ||
|
|
||
| :::note | ||
| 如果你打算在实体 iOS 设备上运行该应用,则还必须提供 `--host` 参数,并且你的开发服务器必须使用 `process.env.TAURI_DEV_HOST` 值作为主机。有关更多信息,请参阅你框架的设置指南。 |
| 构建阶段在 Xcode 进程上下文中执行,因此可能无法使用 Shell 修改(例如添加 PATH)。 | ||
| 因此,在使用可能不兼容的工具(例如 Node.js 版本管理器)时请一定小心。 | ||
|
|
||
| 2. 在首次执行 iOS 应用时提示网络权限n |
|
|
||
| ### 源代码控制 | ||
|
|
||
| 在你的项目仓库中,你应该将 `src-tauri/Cargo.lock` 和 `src-tauri/Cargo.toml` 一起提交到 git,因为 Cargo 使用 lockfile 来提供确定性构建。因此, 建议所有应用程序都写入其 `Cargo.lock` 文件。你**不应该**提交 `src-tauri/target` 文件夹或其中的任何内容。 |
KikkiZ
approved these changes
Jun 5, 2025
Contributor
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description