update zh-tw translation

This commit is contained in:
5idereal
2023-07-13 18:47:05 +08:00
committed by GitHub
parent 1b9a14bbe4
commit e76e59cb6a
21 changed files with 505 additions and 175 deletions

View File

@@ -3,6 +3,6 @@ title: 編譯
weight: 1
---
關於包桌面版本, 請查看 [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) 。
關於包桌面版本,請查看 [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) 。
{{% children depth="3" showhidden="true" %}}

View File

@@ -1,5 +1,5 @@
---
title: Docker
title: Docker
weight: 30
---

View File

@@ -3,9 +3,9 @@ title: Windows 常見問題
weight: 40
---
## vcpkg下載包失敗
## vcpkg 下載包失敗
### 錯誤示例
### 錯誤
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
@@ -15,18 +15,18 @@ weight: 40
### 解決方法
使用瀏覽器下載`https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, 然後放到`vcpkg/downloads`下, 重新安裝.
使用瀏覽器下載 `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`然後放到 `vcpkg/downloads下重新安裝
## Cargo.lock裡的版本不存在
## Cargo.lock 裡的套件不存在
### 錯誤示例
### 錯誤
```
$ cargo run
Updating git repository `https://github.com/open-trade/confy`
warning: spurious network error (2 tries remaining): failed to receive response: 操作超時
Updating git repository `https://github.com/open-trade/confy`
warning: spurious network error (2 tries remaining): failed to receive response: Operation Timeout
; class=Os (2)
error: failed to get `confy` as a dependency of package `hbb_common v0.1.0 (D:\rustdesk\rustdesk\rustdesk\libs\hbb_common)`
@@ -40,17 +40,17 @@ $ cargo run
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
可能作者使用`git force push`覆蓋了之前的commit
可能作者使用 `git force push` 覆蓋了之前的 commit
### 解決方法
`cargo update`強制更新
使用 `cargo update`強制更新套件
## VCPKG_ROOT環境變未設置
## VCPKG_ROOT 環境變未設置
### 錯誤示例
### 錯誤
```
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
@@ -58,13 +58,13 @@ thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg insta
### 解決辦法
添加VCPKG_ROOT環境變, 或者使用`VCPKG_ROOT=<vcpkg_dir> cargo run`
加入 VCPKG_ROOT 環境變, 或者使用 `VCPKG_ROOT=<vcpkg_dir> cargo run`
## 未安裝clang環境, 或未設置LIBCLANG_PATH環境變
## 未安裝 clang 環境或未設置 LIBCLANG_PATH 環境變
### 錯誤示例
### 錯誤
```
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
@@ -72,4 +72,4 @@ thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid sha
### 解決辦法
安裝[llvm](https://releases.llvm.org/download.html), 設置`LIBCLANG_PATH`環境變量為`llvm_install_dir/bin`
安裝 [llvm](https://releases.llvm.org/download.html),設置 `LIBCLANG_PATH` 環境變數為 `llvm_install_dir/bin`

View File

@@ -3,4 +3,19 @@ title: iOS
weight: 23
---
[English](/docs/en/dev/build/ios)
```
cd
# 為節省你我的時間,我們已經準備好依賴檔案了。
https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/ios_dep.tar.gz
tar xzf ios_dep.tar.gz
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
# 模擬器VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_x64.sh
VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_arm64.sh
cd flutter
dart pub global activate ffigen
# 祝你好運!
# 模擬器sed 's/aarch64/x86_64/g' ios/Runner.xcodeproj/project.pbxproj
# 如果你忘記的話cd ios; pod install; cd -;
flutter run
```

View File

@@ -3,4 +3,17 @@ title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)
```
cd
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
./bootstrap-vcpkg.sh
brew install nasm yasm
./vcpkg install libvpx libyuv opus aom
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
export VCPKG_ROOT=$HOME/vcpkg
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
cargo run
```

View File

@@ -3,18 +3,24 @@ title: Windows
weight: 20
---
{{% notice note %}}
此處的所有指令皆須在 git-bash 中執行,而非命令提示字元,否則您會遇到語法錯誤。
{{% /notice %}}
## 依賴
### C++編譯環境
### C++ 編譯環境
推薦下載[msvc](https://visualstudio.microsoft.com/)並安裝
下載 [msvc](https://visualstudio.microsoft.com/) 並安裝
選擇 `Windows` 作為開發機作業系統,並勾選 `C++`。然後下載 Visual Studo 社群版並安裝。安裝可能需要一段時間。
### Rust 開發環境
下載[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)並安裝
下載 [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe),以管理員身份執行並安裝
### vcpkg
使用[git-bash](https://git-scm.com/download/win)行下列命令, 下載`vcpkg`, 安裝`libvpx`, `libyuv`, `opus`
使用[git-bash](https://git-scm.com/download/win)行下列指令,下載 `vcpkg`安裝`libvpx``libyuv``opus`
如果您尚未安裝 `git`,請在[](https://git-scm.com/download/win)下載。
```shell
git clone https://github.com/microsoft/vcpkg
@@ -26,26 +32,29 @@ weight: 20
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
加環境變`VCPKG_ROOT`=`<path>\vcpkg`
入系統環境變`VCPKG_ROOT`=`<path>\vcpkg``<path>` 應為您複製 `vcpkg` 的路徑。
![](/docs/en/dev/build/windows/images/env.png)
### Sciter
桌面版本使用[sciter](https://sciter.com/) , 下載動態庫[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
桌面版本的介面使用 [sciter](https://sciter.com/),請下載 [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
### llvm
rust-bindgen依赖于clang, 下載[llvm](https://github.com/llvm/llvm-project/releases)並安裝,加環境變`LIBCLANG_PATH` 值為`<llvm_install_dir>/bin`
rust-bindgen 依賴 clang下載 [llvm](https://github.com/llvm/llvm-project/releases) 並安裝,加入系統環境變`LIBCLANG_PATH`=`<llvm_install_dir>/bin`
您可以在此下載 LLVM 15.02 版本的安裝包:[64 位元](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 位元](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe)
## 編譯
## 構建
### 預設
```sh
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll
mv sciter.dll target/debug
cargo run
```
```