full translation

This commit is contained in:
rustdesk
2025-06-14 21:21:30 +08:00
parent 7b128fba05
commit 22c2b2350a
287 changed files with 26657 additions and 4884 deletions

View File

@@ -1,8 +1,8 @@
---
title: Build
title: Compilazione
weight: 1
---
Check out [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) for packaging desktop version.
Consulta [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) per il packaging della versione desktop.
{{% children depth="3" showhidden="true" %}}

View File

@@ -1,8 +1,8 @@
---
title: Build
title: ビルド
weight: 1
---
Check out [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) for packaging desktop version.
デスクトップ版のパッケージ化については、[build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) をご確認ください。
{{% children depth="3" showhidden="true" %}}

View File

@@ -1,8 +0,0 @@
---
title: Build
weight: 1
---
Kijk bij [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) voor de desktop versie.
{{% children depth="3" showhidden="true" %}}

4
content/dev/build/_index.pt.md Executable file → Normal file
View File

@@ -1,8 +1,8 @@
---
title: Build
title: Compilação
weight: 1
---
Check out [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) for packaging desktop version.
Consulte [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) para empacotamento da versão desktop.
{{% children depth="3" showhidden="true" %}}

View File

@@ -1,8 +0,0 @@
---
title: Сборка
weight: 1
---
Проверьте [build.py](https://github.com/rustdesk/rustdesk/blob/master/build.py) для упаковки настольной версии.
{{% children depth="3" showhidden="true" %}}

View File

@@ -1,36 +0,0 @@
---
title: Docker
weight: 30
---
## Build met Docker
### Dit werkt niet op Windows
Begin met het klonen van de repository en build de docker container:
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
docker build -t "rustdesk-builder" .
```
Vervolgens voert u, telkens wanneer u de toepassing build, het volgende commando uit:
```sh
docker run --rm -it -v $PWD:/home/user/rustdesk -v rustdesk-git-cache:/home/user/.cargo/git -v rustdesk-registry-cache:/home/user/.cargo/registry -e PUID="$(id -u)" -e PGID="$(id -g)" rustdesk-builder
```
Merk op dat de eerste build langer kan duren voordat de afhankelijkheden in de cache staan, volgende builds zullen sneller zijn. Bovendien, als u verschillende argumenten moet opgeven voor het build commando, kunt u dit doen aan het einde van het commando in de `<OPTIONAL-ARGS>` positie. Als u bijvoorbeeld een geoptimaliseerde release versie wilt bouwen, voert u het bovenstaande commando uit gevolgd door `--release`. De resulterende uitvoerbare versie zal beschikbaar zijn in de doelmap op uw systeem, en kan worden uitgevoerd met:
```sh
target/debug/rustdesk
```
Of, als je een release uitvoerbaar bestand draait:
```sh
target/release/rustdesk
```
Zorg ervoor dat u deze commando's vanuit de root van de RustDesk repository uitvoert, anders kan de applicatie mogelijk de benodigde bronnen niet vinden. Merk ook op dat andere cargo subcommando's zoals `install` of `run` momenteel niet ondersteund worden via deze methode omdat ze het programma in de container installeren of uitvoeren in plaats van in de host.

View File

@@ -1,34 +1,35 @@
---
title: Docker
title: Docker
weight: 30
---
## Como compilar com Docker
### Como compilar com Docker
#### Isto não funcionará no Windows
Comece clonando o repositório e montando o container docker:
Comece clonando o repositório e compilando o container Docker:
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
git clone --depth=1 https://github.com/rustdesk/rustdesk
cd rustdesk
docker build -t "rustdesk-builder" .
```
Então, sempre que precisar compilar a aplicação, execute este comando:
Em seguida, sempre que precisar compilar a aplicação, execute o seguinte comando:
```sh
docker run --rm -it -v $PWD:/home/user/rustdesk -v rustdesk-git-cache:/home/user/.cargo/git -v rustdesk-registry-cache:/home/user/.cargo/registry -e PUID="$(id -u)" -e PGID="$(id -g)" rustdesk-builder
```
Note que a primeira compilação pode demorar mais antes que as dependências sejam armazenadas em cache, as compilações subsequentes serão mais rápidas. Adicionalmente, se você precisar especificar argumentos diferentes para o comando de compilação, você pode fazê-lo ao final do comando na posição do `<OPTIONAL-ARGS>`. Por exemplo, se você gostaria de compilar uma versão de release otimizada, você executaria o comando acima seguido de `--release`. O executável gerado estará disponível no diretório alvo no seu sistema, e pode ser executado com:
Note que a primeira compilação pode demorar mais antes das dependências serem armazenadas em cache, compilações subsequentes serão mais rápidas. Além disso, se precisar especificar argumentos diferentes para o comando de compilação, pode fazê-lo no final do comando na posição `<OPTIONAL-ARGS>`. Por exemplo, se quiser compilar uma versão de lançamento otimizada, executaria o comando acima seguido de `--release`. O executável resultante estará disponível na pasta target do seu sistema e pode ser executado com:
```sh
target/debug/rustdesk
```
Ou, se estiver rodando um executável de release:
Ou, se estiver executando um executável de lançamento:
```sh
target/release/rustdesk
```
Por favor verifique que está executando estes comandos da raiz do repositório do RustDesk, senão a aplicação pode não encontrar os recursos necessários. Note também que outros subcomandos do cargo como `install` ou `run` não são suportados atualmente via este método, já que eles iriam instalar ou rodar o programa dentro do container ao invés do host.
Certifique-se de que está executando estes comandos a partir da raiz do repositório RustDesk, caso contrário a aplicação pode não conseguir encontrar os recursos necessários. Note também que outros subcomandos do cargo como `install` ou `run` não são atualmente suportados através deste método, pois instalariam ou executariam o programa dentro do container em vez do host.

View File

@@ -1,34 +0,0 @@
---
title: Docker
weight: 30
---
## Как собрать с помощью Docker
Начните с клонирования репозитория и создания docker контейнера:
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
docker build -t "rustdesk-builder" .
```
Затем каждый раз, когда вам нужно собрать приложение, запускайте следующую команду:
```sh
docker run --rm -it -v $PWD:/home/user/rustdesk -v rustdesk-git-cache:/home/user/.cargo/git -v rustdesk-registry-cache:/home/user/.cargo/registry -e PUID="$(id -u)" -e PGID="$(id -g)" rustdesk-builder
```
Обратите внимание, что первая сборка может занять больше времени, прежде чем зависимости будут кэшированы, последующие сборки будут выполняться быстрее. Кроме того, если вам нужно указать другие аргументы для команды сборки, вы можете сделать это в конце команды в позиции `<OPTIONAL-ARGS>`. Например, если вы хотите создать оптимизированную версию, вы должны запустить приведенную выше команду, а затем `--release`. Полученный исполняемый файл будет доступен в целевой папке вашей системы и может быть запущен с помощью:
```sh
target/debug/rustdesk
```
Или, если вы используете исполняемый файл релиза:
```sh
target/release/rustdesk
```
Пожалуйста, убедитесь, что вы запускаете эти команды из корня репозитория RustDesk, иначе приложение не сможет найти необходимые ресурсы. Также обратите внимание, что другие cargo подкоманды, такие как `install` или `run`, в настоящее время не поддерживаются этим методом, поскольку они будут устанавливать или запускать программу внутри контейнера, а не на хосте.

View File

@@ -1,6 +1,75 @@
---
title: FAQ
title: FAQ per Windows
weight: 40
---
[English](/docs/en/dev/build/faq)
### Download del pacchetto vcpkg fallito
#### Errore
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
#### Soluzione
Usa un browser per scaricare [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz), poi spostalo in `vcpkg/downloads` e reinstalla.
### Il pacchetto in Cargo.lock non esiste
#### Errore
```
$ cargo run
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)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
Forse l'autore ha usato `git force push` e il commit precedente è stato sovrascritto.
#### Soluzione
`cargo update`, forza l'aggiornamento del pacchetto.
### VCPKG_ROOT non impostato
#### Errore
```
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
```
#### Soluzione
Aggiungi la variabile d'ambiente `VCPKG_ROOT`, o esegui con `VCPKG_ROOT=<vcpkg_dir> cargo run`.
### clang non installato, o LIBCLANG_PATH non impostato
#### Errore
```
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
```
#### Soluzione
Installa [LLVM](https://releases.llvm.org/download.html), aggiungi la variabile d'ambiente `LIBCLANG_PATH` come `llvm_install_dir/bin`.

View File

@@ -1,6 +1,75 @@
---
title: FAQ
title: Windows FAQ
weight: 40
---
[English](/docs/en/dev/build/faq)
### vcpkg パッケージダウンロード失敗
#### エラー
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
#### 解決策
ブラウザを使用して [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz) をダウンロードし、`vcpkg/downloads` に移動して再インストールしてください。
### Cargo.lock 内のパッケージが存在しない
#### エラー
```
$ cargo run
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)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
おそらく作者が `git force push` を使用して以前のコミットを上書きしたようです。
#### 解決策
`cargo update` を実行して、パッケージを強制的に更新してください。
### 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
```
#### 解決策
`VCPKG_ROOT` 環境変数を追加するか、`VCPKG_ROOT=<vcpkg_dir> cargo run` で実行してください。
### 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
```
#### 解決策
[LLVM](https://releases.llvm.org/download.html) をインストールし、`LIBCLANG_PATH` 環境変数を `llvm_install_dir/bin` として追加してください。

View File

@@ -1,75 +0,0 @@
---
title: FAQ voor Windows
weight: 40
---
## vcpkg download pakket mislukt
### Fout
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
### Oplossing
Gebruik een browser en download `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, en plaats het dan in `vcpkg/downloads` en installeer opnieuw.
## Pakket in Cargo.lock bestaat niet
### Fout
```
$ cargo run
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)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
Misschien gebruikte de auteur `git force push` en de vorige poging werd overschreven.
### Oplossing
`cargo update`, het pakket forceren om bijgewerkt te worden
## VCPKG_ROOT niet ingesteld
### Fout
```
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
```
### Oplossing
Voeg `VCPKG_ROOT` omgevingsvariabele toe, of voer uit met `VCPKG_ROOT=<vcpkg_dir> cargo run`
## clang niet aanwezig, of LIBCLANG_PATH niet ingesteld
### Fout
```
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
```
### Oplossing
Installeer [llvm](https://releases.llvm.org/download.html), Voeg de `LIBCLANG_PATH` omgevingsvariabele toe als `llvm_install_dir/bin`

View File

@@ -1,6 +1,75 @@
---
title: FAQ
title: FAQ para Windows
weight: 40
---
[English](/docs/en/dev/build/faq)
### Falha no download de pacote vcpkg
#### Erro
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
#### Solução
Use um navegador para baixar [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz), depois mova para `vcpkg/downloads` e reinstale.
### Pacote no Cargo.lock não existe
#### Erro
```
$ cargo run
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)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
Talvez o autor tenha usado `git force push` e o commit anterior foi sobrescrito.
#### Solução
`cargo update`, força a atualização do pacote.
### VCPKG_ROOT não definido
#### Erro
```
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
```
#### Solução
Adicione a variável de ambiente `VCPKG_ROOT`, ou execute com `VCPKG_ROOT=<vcpkg_dir> cargo run`.
### clang não instalado, ou LIBCLANG_PATH não definido
#### Erro
```
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
```
#### Solução
Instale [LLVM](https://releases.llvm.org/download.html), adicione a variável de ambiente `LIBCLANG_PATH` como `llvm_install_dir/bin`.

View File

@@ -1,75 +0,0 @@
---
title: ЧЗВ для Windows
weight: 40
---
## vcpkg download package failed
### Ошибка
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
### Решение
Используйте браузер для загрузки `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, затем переместите файл в `vcpkg/downloads` и переустановите.
## Package in Cargo.lock not exist
### Ошибка
```
$ cargo run
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)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
Возможно, автор использовал `git force push`, и предыдущий коммит был перезаписан.
### Решение
`cargo update`, чтобы принудительно обновить пакет
## VCPKG_ROOT not set
### Ошибка
```
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
```
### Решение
Добавьте переменную окружения `VCPKG_ROOT` или запустите `VCPKG_ROOT=<vcpkg_dir> cargo run`
## clang not installed, or LIBCLANG_PATH not set
### Ошибка
```
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
```
### Решение
Установите [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
# Per risparmiare il tuo tempo e il nostro tempo, abbiamo preparato file dipendenti per te.
https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/ios_dep.tar.gz
tar xzf ios_dep.tar.gz
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
# Per il simulatore: VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_x64.sh
VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_arm64.sh
cd flutter
dart pub global activate ffigen
# Buona fortuna!
# Per il simulatore: sed 's/aarch64/x86_64/g' ios/Runner.xcodeproj/project.pbxproj
# Dimentica se necessario: cd ios; pod install; cd -;
flutter run
```

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 --recurse-submodules 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

@@ -1,21 +0,0 @@
---
title: iOS
weight: 23
---
```
cd
# For saving your time and our time, we prepared dependent files for you.
https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/ios_dep.tar.gz
tar xzf ios_dep.tar.gz
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
# For simulator: VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_x64.sh
VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_arm64.sh
cd flutter
dart pub global activate ffigen
# Good Luck!
# For simulator: sed 's/aarch64/x86_64/g' ios/Runner.xcodeproj/project.pbxproj
# Forget if need: cd ios; pod install; cd -;
flutter run
```

View File

@@ -3,4 +3,19 @@ title: iOS
weight: 23
---
[English](/docs/en/dev/build/ios)
```
cd
# Para poupar seu tempo e nosso tempo, preparamos arquivos de dependência para você.
https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/ios_dep.tar.gz
tar xzf ios_dep.tar.gz
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
# Para simulador: VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_x64.sh
VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_arm64.sh
cd flutter
dart pub global activate ffigen
# Boa sorte!
# Para simulador: sed 's/aarch64/x86_64/g' ios/Runner.xcodeproj/project.pbxproj
# Esqueça se precisar: cd ios; pod install; cd -;
flutter run
```

View File

@@ -1,21 +0,0 @@
---
title: iOS
weight: 23
---
```
cd
# Для экономии вашего и нашего времени мы подготовили для вас файлы зависимостей.
https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/ios_dep.tar.gz
tar xzf ios_dep.tar.gz
git clone --recurse-submodules 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,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 --recurse-submodules 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

@@ -1,63 +0,0 @@
---
title: Linux
weight: 10
---
## Build op Linux
### Ubuntu 18 (Debian 10)
```sh
sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake
```
### Fedora 28 (CentOS 8)
```sh
sudo yum -y install gcc-c++ git curl wget nasm yasm gcc gtk3-devel clang libxcb-devel libxdo-devel libXfixes-devel pulseaudio-libs-devel cmake alsa-lib-devel
```
### Arch (Manjaro)
```sh
sudo pacman -Syu --needed unzip git cmake gcc curl wget yasm nasm zip make pkg-config clang gtk3 xdotool libxcb libxfixes alsa-lib pulseaudio
```
### Installeer vcpkg
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.10.19
cd ..
vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install --x-install-root="$VCPKG_ROOT/installed"
```
### Herstel libvpx (Voor Fedora)
```sh
cd vcpkg/buildtrees/libvpx/src
cd *
./configure
sed -i 's/CFLAGS+=-I/CFLAGS+=-fPIC -I/g' Makefile
sed -i 's/CXXFLAGS+=-I/CXXFLAGS+=-fPIC -I/g' Makefile
make
cp libvpx.a $VCPKG_ROOT/installed/x64-linux/lib/
cd
```
### Build
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
mv libsciter-gtk.so target/debug
# Note: VCPKG_ROOT still set
cargo run
```

View File

@@ -3,30 +3,30 @@ title: Linux
weight: 10
---
## Como compilar no Linux
### Como compilar no Linux
### Ubuntu 18 (Debian 10)
#### Ubuntu 18 (Debian 10)
```sh
sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake
```
### Fedora 28 (CentOS 8)
#### Fedora 28 (CentOS 8)
```sh
sudo yum -y install gcc-c++ git curl wget nasm yasm gcc gtk3-devel clang libxcb-devel libxdo-devel libXfixes-devel pulseaudio-libs-devel cmake alsa-lib-devel
```
### Arch (Manjaro)
#### Arch Linux (Manjaro)
```sh
sudo pacman -Syu --needed unzip git cmake gcc curl wget yasm nasm zip make pkg-config clang gtk3 xdotool libxcb libxfixes alsa-lib pulseaudio
```
### Instale vcpkg
#### Instalar vcpkg
```sh
git clone https://github.com/microsoft/vcpkg
git clone --recurse-submodules https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.10.19
cd ..
@@ -35,7 +35,7 @@ export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install --x-install-root="$VCPKG_ROOT/installed"
```
### Conserte libvpx (Para o Fedora)
#### Corrigir libvpx (para Fedora)
```sh
cd vcpkg/buildtrees/libvpx/src
@@ -48,7 +48,7 @@ cp libvpx.a $VCPKG_ROOT/installed/x64-linux/lib/
cd
```
### Compile
#### Compilar
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
@@ -58,6 +58,6 @@ cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
mv libsciter-gtk.so target/debug
# Note: VCPKG_ROOT still set
# Nota: VCPKG_ROOT ainda definido
cargo run
```
```

View File

@@ -1,63 +0,0 @@
---
title: Linux
weight: 10
---
## Как собрать в Linux
### Ubuntu 18 (Debian 10)
```sh
sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake
```
### Fedora 28 (CentOS 8)
```sh
sudo yum -y install gcc-c++ git curl wget nasm yasm gcc gtk3-devel clang libxcb-devel libxdo-devel libXfixes-devel pulseaudio-libs-devel cmake alsa-lib-devel
```
### Arch (Manjaro)
```sh
sudo pacman -Syu --needed unzip git cmake gcc curl wget yasm nasm zip make pkg-config clang gtk3 xdotool libxcb libxfixes alsa-lib pulseaudio
```
### Установка vcpkg
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.10.19
cd ..
vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install --x-install-root="$VCPKG_ROOT/installed"
```
### Исправления libvpx (для Fedora)
```sh
cd vcpkg/buildtrees/libvpx/src
cd *
./configure
sed -i 's/CFLAGS+=-I/CFLAGS+=-fPIC -I/g' Makefile
sed -i 's/CXXFLAGS+=-I/CXXFLAGS+=-fPIC -I/g' Makefile
make
cp libvpx.a $VCPKG_ROOT/installed/x64-linux/lib/
cd
```
### Сборка
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
mv libsciter-gtk.so target/debug
# Note: VCPKG_ROOT still set
cargo run
```

View File

@@ -3,4 +3,120 @@ title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)
Ci sono diversi modi per farlo, questa guida presuppone che `Xcode`, `Git` e `Homebrew` siano già installati.
La sfida più grande è probabilmente trovare le versioni di tutti gli strumenti che funzionano insieme, specialmente dato che parti della toolchain come Xcode e LLVM sono dettate dalla tua versione di macOS. Le versioni utilizzate in questa guida probabilmente non sono quelle che dovresti utilizzare. Come punto di partenza per capire quali versioni utilizzare, guarda il [workflow di build di GitHub](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) per la versione di RustDesk che vuoi compilare. Scegli il tag per vedere il file nell'angolo in alto a sinistra della pagina. Ma questo potrebbe non funzionare necessariamente perché gli strumenti macOS forniti con il runner di GitHub potrebbero non essere le stesse versioni di quelle sul tuo sistema locale.
#### Export
`export` viene utilizzato per impostare varie variabili ambientali. Quando esegui `export`, quella variabile viene impostata solo per la sessione terminale corrente, e quindi deve essere ripetuta per ogni nuova finestra terminale che vuoi utilizzare per compilare RustDesk, ora o in futuro. Generalmente, è preferibile aggiungere tutti gli `export` a uno script che viene eseguito automaticamente per ogni terminale che viene aperto, ad esempio `~/.bash_profile`. I comandi `export` completi elencati qui possono essere semplicemente aggiunti al file, ma devono anche essere eseguiti nel terminale corrente perché il file non viene letto fino a quando non viene aperto un *nuovo* terminale.
### Installa gli strumenti che utilizzeremo da Homebrew
```sh
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
```
Alcune delle installazioni potrebbero fallire perché alcune delle cartelle di destinazione non esistono sul nostro sistema. In quel caso, crea la cartella, imposta proprietario e permessi ed esegui nuovamente il comando `brew`. Esempio se `/usr/local/include` non esiste:
```sh
sudo mkdir /usr/local/include
sudo chown <username>:admin /usr/local/include
sudo chmod 775 /usr/local/include
```
### Installa vcpkg
Vcpkg viene utilizzato per gestire le dipendenze C/C++ utilizzate da RustDesk. Decidi dove vuoi l'installazione ed esegui quanto segue dalla cartella in cui vuoi che risieda la cartella `vcpkg`. In questo esempio `/Users/<username>/repos/` viene utilizzato come posizione, e il tag `2023.04.15` viene utilizzato come versione.
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
./bootstrap-vcpkg.sh -disableMetrics
./vcpkg install libvpx libyuv opus aom
export VCPKG_ROOT=~/repos/vcpkg
```
### Installa e configura Rust
Utilizziamo `rustup` per gestire Rust, che è già stato installato sopra utilizzando Homebrew. Ma deve ancora essere configurato. Segui le istruzioni e assicurati che sia `rustup` che `rustc` siano nel `PATH`. In questo esempio utilizziamo la versione di Rust `1.75.0`, ma potresti dover utilizzare una versione diversa. Puoi installare e gestire più versioni di Rust con `rustup`.
```sh
rustup-init
rustup default 1.75.0
rustup component add rustfmt
```
Per una panoramica delle toolchain Rust installate e predefinite, esegui `rustup show`.
### Scarica i file sorgente di RustDesk
Decidi dove vuoi i file sorgente di RustDesk ed esegui quanto segue dalla cartella in cui vuoi che risieda la cartella `rustdesk`. In questo esempio `/Users/<username>/repos/` viene utilizzato come posizione.
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk/libs/portable/
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
```
Se `python3` o `pip` sono sconosciuti, aggiungili al `PATH` con qualcosa come (usa i nomi delle tue cartelle effettive):
```sh
export PATH=~/Library/Python/3.9/bin:$PATH
```
Una volta fatto, esegui nuovamente i comandi falliti. Ricorda anche di modificare `~/.bash_profile`.
### Installa i componenti dell'interfaccia utente
RustDesk può essere compilato utilizzando sia [Sciter](https://sciter.com/) che [Flutter](https://flutter.dev/). Entrambi necessitano di componenti aggiuntivi, quindi segui i passaggi per la versione pertinente, o entrambe.
#### Sciter
Dalla cartella `rustdesk`, esegui:
```sh
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
```
#### Flutter
[FVM](https://fvm.app/) ti consente di gestire quale versione di Flutter viene utilizzata, ed è probabilmente il modo più semplice per poter facilmente provare diverse versioni di Flutter.
```sh
brew tap leoafarias/fvm
brew install fvm cocoapods
```
Installa e usa, ad esempio Flutter `3.16.9`, con:
```sh
fvm global 3.16.9
```
FVM è pensato per utilizzare una configurazione più complessa dove può fornire diverse versioni di Flutter per progetti diversi, ma questo va oltre lo scopo di questa guida. Invece, aggiungi semplicemente la posizione del Flutter predefinito fornito da FVM al tuo `PATH` manualmente, il che significa che devi utilizzare `fvm global` per cambiare versione di Flutter:
```sh
export PATH=$HOME/fvm/default/bin:$PATH
```
Una volta fatto, dovresti disabilitare la telemetria e controllare se tutto è OK:
```sh
flutter --disable-analytics
dart --disable-analytics
flutter doctor -v
```
Non importa se alcuni dei controlli falliscono, di solito lo fanno, quello che è importante è che il controllo per l'ambiente che intendi utilizzare sia OK, ovvero `Xcode`. Se vengono segnalati problemi, affrontali prima di andare avanti.
Una volta che Flutter è attivo e funzionante, è il momento di installare il "bridge" che lega insieme Rust e Flutter. Ecco un'altra delle versioni che devono funzionare insieme a tutto il resto, in questo esempio utilizziamo `1.80.1`:
```sh
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
```
### Build
Compila dalla cartella `rustdesk`. Compila la versione Sciter con:
```sh
python3 ./build.py
```
Compila la versione Flutter con:
```sh
flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h
python3 ./build.py --flutter
```
Se tutto va bene, ora dovresti avere un file `dmg` pronto per l'installazione nella tua cartella `rustdesk`.

View File

@@ -3,4 +3,120 @@ title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)
これを行う方法は複数ありますが、このガイドでは `Xcode``Git``Homebrew` が既にインストールされていることを前提としています。
最大の課題は、特に Xcode や LLVM などのツールチェーンの一部が macOS バージョンによって決まるため、すべてのツールが連携して動作するバージョンを見つけることです。このガイドで使用されているバージョンは、あなたが使用すべきバージョンではない可能性があります。使用するバージョンを決定する開始点として、ビルドしたい RustDesk バージョンの [GitHub ビルドワークフロー](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) を参照してください。ページの左上でファイルを表示するタグを選択してください。ただし、GitHub ランナーに付属する macOS ツールが、ローカルシステムのものと同じバージョンでない可能性があるため、これが必ずしも機能するとは限りません。
#### Export
`export` は様々な環境変数を設定するために使用されます。`export` を実行すると、その変数は現在のターミナルセッションのみに設定され、現在または将来 RustDesk をビルドするために使用したい新しいターミナルウィンドウごとに繰り返す必要があります。一般的には、すべての `export` を、開かれるすべてのターミナルに対して自動的に実行されるスクリプト(例:`~/.bash_profile`)に追加することが望ましいです。ここに記載されている完全な `export` コマンドは、単純にファイルに追加できますが、ファイルは *新しい* ターミナルが開かれるまで読み込まれないため、現在のターミナルでも実行する必要があります。
### Homebrew から使用するツールをインストールする
```sh
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
```
対象フォルダがシステムに存在しないため、一部のインストールが失敗する場合があります。その場合は、フォルダを作成し、所有者と権限を設定して、`brew` コマンドを再度実行してください。例えば、`/usr/local/include` が存在しない場合:
```sh
sudo mkdir /usr/local/include
sudo chown <username>:admin /usr/local/include
sudo chmod 775 /usr/local/include
```
### vcpkg をインストールする
Vcpkg は RustDesk が使用する C/C++ 依存関係を管理するために使用されます。インストール場所を決定し、`vcpkg` フォルダを配置したいフォルダから以下を実行してください。この例では、場所として `/Users/<username>/repos/` を使用し、バージョンとしてタグ `2023.04.15` を使用しています。
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
./bootstrap-vcpkg.sh -disableMetrics
./vcpkg install libvpx libyuv opus aom
export VCPKG_ROOT=~/repos/vcpkg
```
### Rust をインストールして設定する
Rust の管理には `rustup` を使用しますが、これは上記で Homebrew を使用して既にインストールされています。ただし、まだ設定が必要です。指示に従い、`rustup``rustc` の両方が `PATH` にあることを確認してください。この例では Rust バージョン `1.75.0` を使用していますが、異なるバージョンを使用する必要がある場合があります。`rustup` を使用して複数のバージョンの Rust をインストールして管理できます。
```sh
rustup-init
rustup default 1.75.0
rustup component add rustfmt
```
インストールされたデフォルトの Rust ツールチェーンの概要を確認するには、`rustup show` を実行してください。
### RustDesk ソースファイルをダウンロードする
RustDesk ソースファイルを配置する場所を決定し、`rustdesk` フォルダを配置したいフォルダから以下を実行してください。この例では、場所として `/Users/<username>/repos/` を使用しています。
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk/libs/portable/
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
```
`python3` または `pip` が不明な場合は、以下のようにして `PATH` に追加してください(実際のフォルダ名を使用してください):
```sh
export PATH=~/Library/Python/3.9/bin:$PATH
```
それが完了したら、失敗したコマンドを再度実行してください。`~/.bash_profile` も編集することを忘れないでください。
### ユーザーインターフェイスコンポーネントをインストールする
RustDesk は [Sciter](https://sciter.com/) と [Flutter](https://flutter.dev/) の両方を使用してビルドできます。これらの両方には追加のコンポーネントが必要なので、関連するバージョンまたは両方の手順に従ってください。
#### Sciter
`rustdesk` フォルダから実行してください:
```sh
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
```
#### Flutter
[FVM](https://fvm.app/) を使用すると、使用する Flutter のバージョンを管理でき、異なる Flutter バージョンを簡単に試すための最も簡単な方法です。
```sh
brew tap leoafarias/fvm
brew install fvm cocoapods
```
例えば Flutter `3.16.9` をインストールして使用するには:
```sh
fvm global 3.16.9
```
FVM は、異なるプロジェクトに異なる Flutter バージョンを提供できるより複雑な設定を使用することを意図していますが、それはこのガイドの範囲を超えています。代わりに、FVM によって提供されるデフォルトの Flutter の場所を手動で `PATH` に追加するだけで、Flutter バージョンを切り替えるために `fvm global` を使用する必要があります:
```sh
export PATH=$HOME/fvm/default/bin:$PATH
```
それが完了したら、テレメトリを無効にし、すべてが正常かどうかを確認する必要があります:
```sh
flutter --disable-analytics
dart --disable-analytics
flutter doctor -v
```
一部のチェックが失敗しても問題ありません。通常は失敗します。重要なのは、使用を意図している環境、つまり `Xcode` のチェックが正常であることです。問題が報告された場合は、先に進む前にそれらに対処してください。
Flutter が起動して実行されたら、Rust と Flutter を結びつける「ブリッジ」をインストールする時です。これは、他のすべてと連携して動作する必要があるバージョンのもう1つです。この例では `1.80.1` を使用します:
```sh
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
```
### ビルド
`rustdesk` フォルダからビルドしてください。Sciter バージョンをビルドするには:
```sh
python3 ./build.py
```
Flutter バージョンをビルドするには:
```sh
flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h
python3 ./build.py --flutter
```
すべてがうまくいけば、`rustdesk` フォルダにインストール準備完了の `dmg` ファイルができているはずです。

View File

@@ -1,19 +0,0 @@
---
title: macOS
weight: 21
---
```
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 --recurse-submodules 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,4 +3,120 @@ title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)
Existem várias maneiras de fazer isso, este guia assume que `Xcode`, `Git` e `Homebrew` já estão instalados.
O maior desafio é provavelmente encontrar versões de todas as ferramentas que funcionem juntas, especialmente desde que partes da cadeia de ferramentas como Xcode e LLVM são ditadas pela sua versão do macOS. As versões usadas neste guia provavelmente não são as que você deve usar. Como ponto de partida para descobrir quais versões usar, consulte o [workflow de compilação do GitHub](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) para a versão RustDesk que você quer compilar. Escolha a tag para ver o arquivo no canto superior esquerdo da página. Mas isso não necessariamente funcionará porque as ferramentas do macOS que vêm com o runner do GitHub podem não ser as mesmas versões que as do seu sistema local.
#### Export
`export` é usado para definir várias variáveis ambientais. Quando você executa `export`, essa variável é definida apenas para a sessão atual do terminal, e essas devem ser repetidas para cada nova janela do terminal que você quiser usar para compilar RustDesk, agora ou no futuro. Geralmente, é preferível adicionar todos os `export`s a um script que é executado automaticamente para cada terminal que é aberto, por exemplo `~/.bash_profile`. Os comandos `export` completos listados aqui podem simplesmente ser anexados ao arquivo, mas também devem ser executados no terminal atual porque o arquivo não é lido até que um *novo* terminal seja aberto.
### Instalar as ferramentas que vamos usar do Homebrew
```sh
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
```
Algumas das instalações podem falhar porque algumas das pastas de destino não existem no nosso sistema. Nesse caso, crie a pasta, defina o proprietário e permissões e execute o comando `brew` novamente. Exemplo se `/usr/local/include` não existir:
```sh
sudo mkdir /usr/local/include
sudo chown <nome_usuario>:admin /usr/local/include
sudo chmod 775 /usr/local/include
```
### Instalar vcpkg
Vcpkg é usado para gerenciar as dependências C/C++ usadas pelo RustDesk. Decida onde você quer a instalação e execute o seguinte da pasta na qual você quer que a pasta `vcpkg` resida. Neste exemplo `/Users/<nome_usuario>/repos/` é usado como localização, e a tag `2023.04.15` é usada como versão.
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
./bootstrap-vcpkg.sh -disableMetrics
./vcpkg install libvpx libyuv opus aom
export VCPKG_ROOT=~/repos/vcpkg
```
### Instalar e configurar Rust
Usamos `rustup` para gerenciar o Rust, que já foi instalado acima usando Homebrew. Mas, ainda precisa ser configurado. Siga as instruções e certifique-se de que tanto `rustup` quanto `rustc` estão no `PATH`. Neste exemplo usamos a versão `1.75.0` do Rust, mas você pode precisar usar uma versão diferente. Você pode instalar e gerenciar múltiplas versões do Rust com `rustup`.
```sh
rustup-init
rustup default 1.75.0
rustup component add rustfmt
```
Para uma visão geral sobre as cadeias de ferramentas Rust instaladas e padrão, execute `rustup show`.
### Baixar os arquivos fonte do RustDesk
Decida onde você quer os arquivos fonte do RustDesk e execute o seguinte da pasta na qual você quer que a pasta `rustdesk` resida. Neste exemplo `/Users/<nome_usuario>/repos/` é usado como localização.
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk/libs/portable/
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
```
Se `python3` ou `pip` for desconhecido, adicione-os ao `PATH` com algo como (use seus nomes de pasta reais):
```sh
export PATH=~/Library/Python/3.9/bin:$PATH
```
Uma vez feito isso, execute o(s) comando(s) falhado(s) novamente. Lembre-se de também editar `~/.bash_profile`.
### Instalar componentes da interface do usuário
RustDesk pode ser compilado usando tanto [Sciter](https://sciter.com/) quanto [Flutter](https://flutter.dev/). Ambos precisam de componentes adicionais, então siga os passos para a versão relevante, ou ambos.
#### Sciter
Da pasta `rustdesk`, execute:
```sh
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
```
#### Flutter
[FVM](https://fvm.app/) permite gerenciar qual versão do Flutter é usada, e é provavelmente a maneira mais fácil de poder facilmente testar diferentes versões do Flutter.
```sh
brew tap leoafarias/fvm
brew install fvm cocoapods
```
Instale e use, por exemplo Flutter `3.16.9`, com:
```sh
fvm global 3.16.9
```
FVM é destinado a usar uma configuração mais complexa onde pode fornecer diferentes versões do Flutter para diferentes projetos, mas isso está além do escopo deste guia. Em vez disso, simplesmente adicione a localização do Flutter padrão fornecido pelo FVM ao seu `PATH` manualmente, o que significa que você deve usar `fvm global` para trocar a versão do Flutter:
```sh
export PATH=$HOME/fvm/default/bin:$PATH
```
Uma vez feito isso, você deve desabilitar a telemetria e verificar se tudo está OK:
```sh
flutter --disable-analytics
dart --disable-analytics
flutter doctor -v
```
Não importa se algumas das verificações falharem, elas geralmente falharão, o que é importante é que a verificação para o ambiente que você pretende usar esteja OK, nomeadamente `Xcode`. Se houver problemas relatados, resolva-os antes de prosseguir.
Uma vez que o Flutter esteja funcionando, é hora de instalar a "ponte" que liga Rust e Flutter juntos. Aqui está outra das versões que devem funcionar juntas com todo o resto, neste exemplo usamos `1.80.1`:
```sh
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
```
### Compilar
Compile da pasta `rustdesk`. Compile a versão Sciter com:
```sh
python3 ./build.py
```
Compile a versão Flutter com:
```sh
flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h
python3 ./build.py --flutter
```
Se tudo correr bem, você deve agora ter um arquivo `dmg` pronto para instalar na sua pasta `rustdesk`.

View File

@@ -1,6 +0,0 @@
---
title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)

View File

@@ -3,4 +3,120 @@ title: macOS
weight: 21
---
[English](/docs/en/dev/build/osx)
有多种方式可以完成这项工作,本指南假设您已经安装了 `Xcode``Git``Homebrew`
最大的挑战可能是找到所有能够协同工作的工具版本,特别是因为工具链的某些部分(如 Xcode 和 LLVM由您的 macOS 版本决定。本指南中使用的版本可能不是您应该使用的版本。确定使用什么版本的起点是查看您想要构建的 RustDesk 版本的 [GitHub 构建工作流](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml)。在页面左上角选择要查看文件的标签。但这可能不一定有效,因为 GitHub 运行器附带的 macOS 工具可能与您本地系统上的版本不同。
#### Export
`export` 用于设置各种环境变量。当您运行 `export` 时,该变量仅为当前终端会话设置,因此必须在每个新的终端窗口中重复这些设置,无论是现在还是将来想要构建 RustDesk 时。通常,最好将所有 `export` 添加到为每个打开的终端自动执行的脚本中,例如 `~/.bash_profile`。这里列出的完整 `export` 命令可以简单地追加到文件中,但也必须在当前终端中运行,因为文件在打开*新*终端之前不会被读取。
### 从 Homebrew 安装我们要使用的工具
```sh
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
```
某些安装可能会失败,因为我们的系统上不存在某些目标文件夹。在这种情况下,创建文件夹,设置所有者和权限,然后再次运行 `brew` 命令。例如,如果 `/usr/local/include` 不存在:
```sh
sudo mkdir /usr/local/include
sudo chown <username>:admin /usr/local/include
sudo chmod 775 /usr/local/include
```
### 安装 vcpkg
Vcpkg 用于管理 RustDesk 使用的 C/C++ 依赖项。决定您希望安装的位置,并从您希望 `vcpkg` 文件夹所在的文件夹运行以下命令。在此示例中,使用 `/Users/<username>/repos/` 作为位置,使用标签 `2023.04.15` 作为版本。
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
./bootstrap-vcpkg.sh -disableMetrics
./vcpkg install libvpx libyuv opus aom
export VCPKG_ROOT=~/repos/vcpkg
```
### 安装和配置 Rust
我们使用 `rustup` 来管理 Rust它已经通过上面的 Homebrew 安装了。但是,它仍然需要配置。按照说明操作,并确保 `rustup``rustc` 都在 `PATH` 中。在这个示例中我们使用 Rust 版本 `1.75.0`,但您可能需要使用不同的版本。您可以使用 `rustup` 安装和管理多个版本的 Rust。
```sh
rustup-init
rustup default 1.75.0
rustup component add rustfmt
```
要查看已安装和默认的 Rust 工具链概述,请运行 `rustup show`
### 下载 RustDesk 源文件
决定您希望 RustDesk 源文件的位置,并从您希望 `rustdesk` 文件夹所在的文件夹运行以下命令。在此示例中,使用 `/Users/<username>/repos/` 作为位置。
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk/libs/portable/
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
```
如果 `python3``pip` 未知,请使用类似以下的方式将它们添加到 `PATH`(使用您的实际文件夹名称):
```sh
export PATH=~/Library/Python/3.9/bin:$PATH
```
完成后,再次运行失败的命令。记住也要编辑 `~/.bash_profile`
### 安装用户界面组件
RustDesk 可以使用 [Sciter](https://sciter.com/) 和 [Flutter](https://flutter.dev/) 构建。这两者都需要额外的组件,因此请按照相关版本或两者的步骤进行操作。
#### Sciter
`rustdesk` 文件夹运行:
```sh
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
```
#### Flutter
[FVM](https://fvm.app/) 让您管理使用的 Flutter 版本,可能是能够轻松尝试不同 Flutter 版本的最简单方法。
```sh
brew tap leoafarias/fvm
brew install fvm cocoapods
```
例如,安装并使用 Flutter `3.16.9`
```sh
fvm global 3.16.9
```
FVM 旨在使用更复杂的设置,为不同项目提供不同的 Flutter 版本,但这超出了本指南的范围。相反,只需手动将 FVM 提供的默认 Flutter 位置添加到您的 `PATH`,这意味着您必须使用 `fvm global` 来切换 Flutter 版本:
```sh
export PATH=$HOME/fvm/default/bin:$PATH
```
完成后,您应该禁用遥测并检查是否一切正常:
```sh
flutter --disable-analytics
dart --disable-analytics
flutter doctor -v
```
一些检查失败并不重要,它们通常会失败,重要的是您打算使用的环境(即 `Xcode`)的检查是正常的。如果报告了问题,请在继续之前解决它们。
Flutter 启动并运行后,就该安装将 Rust 和 Flutter 绑定在一起的"桥接"了。这是另一个需要与其他所有东西协同工作的版本,在这个示例中我们使用 `1.80.1`
```sh
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
```
### 构建
`rustdesk` 文件夹构建。构建 Sciter 版本:
```sh
python3 ./build.py
```
构建 Flutter 版本:
```sh
flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h
python3 ./build.py --flutter
```
如果一切顺利,您现在应该在 `rustdesk` 文件夹中有一个准备安装的 `dmg` 文件。

View File

@@ -3,4 +3,56 @@ title: Windows
weight: 20
---
[English](/docs/en/dev/build/windows)
{{% notice note %}}
I comandi da riga di comando qui mostrati devono essere eseguiti in Git Bash e non nel prompt dei comandi, altrimenti si verificheranno errori di sintassi.
{{% /notice %}}
### Dipendenze
#### Ambiente di build C++
Scarica [MSVC](https://visualstudio.microsoft.com/) e installalo.
Seleziona `Windows` come OS della macchina di sviluppo e spunta `C++`, quindi scarica la versione Visual Studio Community e installala. L'installazione potrebbe richiedere un po' di tempo.
#### Ambiente di sviluppo Rust
Scarica [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) ed eseguilo come amministratore per installare `rust`.
#### vcpkg
Vai nella cartella dove vuoi clonare vcpkg e usa [Git Bash](https://git-scm.com/download/win) per eseguire i seguenti comandi, per scaricare `vcpkg` e installare le versioni a 64 bit di `libvpx`, `libyuv` e `opus`.
Se non hai `Git` installato, scarica `Git` [qui](https://git-scm.com/download/win).
```sh
git clone https://github.com/microsoft/vcpkg
vcpkg/bootstrap-vcpkg.bat
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
Aggiungi la variabile d'ambiente di sistema `VCPKG_ROOT`=`<path>\vcpkg`. Il `<path>` dovrebbe essere la posizione scelta sopra per clonare `vcpkg`.
![](/docs/en/dev/build/windows/images/env.png)
#### Sciter
Le versioni desktop utilizzano [Sciter](https://sciter.com/) per la GUI, per favore scarica [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
#### LLVM
`rust-bindgen` dipende da `clang`, scarica [LLVM](https://github.com/llvm/llvm-project/releases) e installalo, aggiungi la variabile d'ambiente di sistema `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
Puoi scaricare la versione 15.0.2 dei binari LLVM qui: [64 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe).
### Build
#### Predefinito
```sh
git clone --recurse-submodules 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
```

View File

@@ -3,4 +3,56 @@ title: Windows
weight: 20
---
[English](/docs/en/dev/build/windows)
{{% notice note %}}
ここに示すコマンドライン指示は、コマンドプロンプトではなく Git Bash で実行する必要があります。そうしないと構文エラーが発生します。
{{% /notice %}}
### 依存関係
#### C++ ビルド環境
[MSVC](https://visualstudio.microsoft.com/) をダウンロードしてインストールします。
開発者マシンOS として `Windows` を選択し、`C++` をチェックしてから、Visual Studio Community版をダウンロードしてインストールします。インストールには時間がかかる場合があります。
#### Rust開発環境
[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) をダウンロードし、管理者として実行して `rust` をインストールします。
#### vcpkg
vcpkg をクローンしたいフォルダに移動し、[Git Bash](https://git-scm.com/download/win) を使用して以下のコマンドを実行し、`vcpkg` をダウンロードして、64ビット版の `libvpx``libyuv``opus` をインストールします。
`Git` がインストールされていない場合は、[こちら](https://git-scm.com/download/win) から `Git` を入手してください。
```sh
git clone https://github.com/microsoft/vcpkg
vcpkg/bootstrap-vcpkg.bat
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
システム環境変数 `VCPKG_ROOT`=`<path>\vcpkg` を追加します。`<path>` は、上記で vcpkg をクローンした場所です。
![](/docs/en/dev/build/windows/images/env.png)
#### Sciter
デスクトップ版は GUI に [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` を追加します。
LLVM バイナリ版 15.0.2 はこちらからダウンロードできます: [64 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe)
### ビルド
#### デフォルト
```sh
git clone --recurse-submodules 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
```

View File

@@ -1,61 +0,0 @@
---
title: Windows
weight: 20
---
{{% notice Let op %}}
De commando-regel commando's moeten worden uitgevoerd in git-bash en niet in command prompt, anders krijg je syntaxfouten.
{{% /notice %}}
## Afhankelijkheden
### C++ build-omgeving
Download [msvc](https://visualstudio.microsoft.com/) en installeer.
Selecteer `Windows` als Ontwikkelmachine OS en vink `C++` aan, download dan Visual Studo Community versie en installeer. De installatie kan even duren.
### Rust ontwikkel omgeving
Download [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) en voer het uit als administrator om `rust` te installeren.
### vcpkg
Ga naar de map waarin u vcpkg wilt klonen en gebruik [git-bash](https://git-scm.com/download/win) om de volgende commando's uit te voeren download `vcpkg`, installeer 64bit versie van `libvpx`, `libyuv` en `opus`.
Als je `git` niet hebt ingesteld, haal dan `git` [hier](https://git-scm.com/download/win).
```shell
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
cd ..
vcpkg/bootstrap-vcpkg.bat
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
Voeg Systeem omgevingsvariabele toe `VCPKG_ROOT`=`<path>\vcpkg`. Het `<path>` moet de locatie zijn die u hierboven hebt gekozen om `vcpkg` te klonen.
![](/docs/en/dev/build/windows/images/env-nl.png)
### sciter
Desktop versies gebruiken [sciter](https://sciter.com/) voor GUI, download [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
### llvm
rust-bindgen zijn afhankelijk van clang, download [llvm](https://github.com/llvm/llvm-project/releases) en installeer, voeg systeem omgevingsvariabele `LIBCLANG_PATH`=`<llvm_install_dir>/bin` toe.
U kunt 15.02 van de LLVM-binaire bestanden hier downloaden: [64-bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32-bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe)
## Build
### Standaard
```sh
git clone --recurse-submodules 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
```

View File

@@ -1,27 +1,27 @@
---
title: Windows
title: Windows
weight: 20
---
{{% notice note %}}
Os comandos de linha de comando aqui devem ser executados no Git Bash, não no prompt de comando, ou você obterá erros de sintaxe.
Os comandos de linha de comando aqui devem ser executados no Git Bash, não no prompt de comando, ou você receberá erros de sintaxe.
{{% /notice %}}
### Dependências
#### Ambiente de desenvolvimento C++
#### Ambiente de compilação C++
Baixe o [MSVC](https://visualstudio.microsoft.com/) e instale-o.
Selecione `Windows` como SO da máquina do desenvolvedor e marque `C++`, depois baixe a versão Visual Studio Community e instale-a. A instalação pode demorar um pouco.
Baixe [MSVC](https://visualstudio.microsoft.com/) e instale.
Selecione `Windows` como SO da máquina de desenvolvimento e marque `C++`, depois baixe a versão Visual Studio Community e instale. A instalação pode demorar um pouco.
#### Ambiente de desenvolvimento Rust
Baixe o [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) e execute-o como administrador para instalar o `rust`.
Baixe [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) e execute como administrador para instalar `rust`.
#### vcpkg
Vá para a pasta onde deseja clonar o vcpkg e use o [Git Bash](https://git-scm.com/download/win) para executar os seguintes comandos: baixe o `vcpkg`, instale a versão de 64 bits do `libvpx`, `libyuv` e `opus`.
Se você não tem o `Git` instalado, baixe-o [aqui](https://git-scm.com/download/win).
Vá para a pasta onde você quer clonar o vcpkg e use [Git Bash](https://git-scm.com/download/win) para executar os seguintes comandos, baixar `vcpkg`, instalar versão 64-bit de `libvpx`, `libyuv` e `opus`.
Se você não tem `Git` instalado, obtenha o `Git` [aqui](https://git-scm.com/download/win).
```sh
git clone https://github.com/microsoft/vcpkg
@@ -30,21 +30,21 @@ export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
Adicione a variável de ambiente do sistema `VCPKG_ROOT`=`<caminho>\vcpkg`. O `<caminho>` deve ser o local que você escolheu acima para clonar o `vcpkg`.
Adicione variável de ambiente do Sistema `VCPKG_ROOT`=`<path>\vcpkg`. O `<path>` deve ser a localização que você escolheu acima para clonar `vcpkg`.
![](/docs/en/dev/build/windows/images/env.png)
#### Sciter
As versões para desktop usam o [Sciter](https://sciter.com/) para a interface gráfica. Faça o download do [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
As versões desktop usam [Sciter](https://sciter.com/) para GUI, por favor baixe [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
#### LLVM
`rust-bindgen` depende do `clang`. Faça o download do [LLVM](https://github.com/llvm/llvm-project/releases) e instale-o. Em seguida, adicione a variável de ambiente do sistema `LIBCLANG_PATH`=`<diretório_instalação_llvm>/bin`.
`rust-bindgen` depende de `clang`, baixe [LLVM](https://github.com/llvm/llvm-project/releases) e instale, adicione variável de ambiente do Sistema `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
Você pode baixar a versão 15.0.2 dos binários do LLVM aqui: [64 bits](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bits](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe).
Você pode baixar a versão 15.0.2 dos binários LLVM aqui: [64 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe).
### Compilação
### Compilar
#### Padrão
@@ -55,4 +55,4 @@ 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
```
```

View File

@@ -1,50 +0,0 @@
---
title: Windows
weight: 20
---
## Зависимости
### Среда сборки C++
Скачайте и установите [msvc](https://visualstudio.microsoft.com/).
### Среда разработки Rust
Download [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) and install.
### vcpkg
Используйте [git-bash](https://git-scm.com/download/win) для запуска следующих команд: загрузите `vcpkg`, установите `libvpx`, `libyuv`, `opus`.
```shell
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
cd ..
vcpkg/bootstrap-vcpkg.bat
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
```
Добавьте переменную среду `VCPKG_ROOT`=`<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).
### llvm
rust-bindgen зависит от clang, скачайте и установите [llvm](https://github.com/llvm/llvm-project/releases),добавьте переменную среду `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
## Сборка
```sh
git clone --recurse-submodules https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
mv sciter.dll target/debug
cargo run
```