mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-20 23:20:17 +00:00
fix style
This commit is contained in:
@@ -7,10 +7,10 @@ Es gibt mehrere Möglichkeiten, dies zu tun. Diese Anleitung geht davon aus, das
|
||||
|
||||
Die größte Herausforderung besteht wahrscheinlich darin, Versionen aller Tools zu finden, die zusammen funktionieren, zumal Teile der Toolchain wie Xcode und LLVM von Ihrer macOS-Version abhängig sind. Die in diesem Leitfaden verwendeten Versionen sind wahrscheinlich nicht die, die Sie verwenden sollten. Um herauszufinden, welche Versionen Sie verwenden sollten, können Sie im [GitHub-Build-Workflow] (https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) nach der RustDesk-Version suchen, die Sie bauen möchten. Wählen Sie den Tag aus, für den Sie die Datei oben links auf der Seite sehen möchten. Das wird aber nicht unbedingt funktionieren, weil die macOS-Tools, die mit dem GitHub-Runner geliefert werden, möglicherweise nicht die gleichen Versionen sind wie die auf Ihrem lokalen System.
|
||||
|
||||
#### Export
|
||||
### Export
|
||||
`export` wird verwendet, um verschiedene Umgebungsvariablen zu setzen. Wenn Sie `export` ausführen, wird diese Variable nur für die aktuelle Terminalsitzung gesetzt und muss daher für jedes neue Terminalfenster, das Sie jetzt oder in Zukunft zum Erstellen von RustDesk verwenden wollen, wiederholt werden. Im Allgemeinen ist es besser, alle `export` in ein Skript einzufügen, das automatisch für jedes geöffnete Terminal ausgeführt wird, zum Beispiel `~/.bash_profile`. Die hier aufgelisteten vollständigen `export`-Befehle können einfach an die Datei angehängt werden, müssen aber auch im aktuellen Terminal ausgeführt werden, da die Datei erst gelesen wird, wenn ein *neues* Terminal geöffnet wird.
|
||||
|
||||
### Tools installieren, die wir in Homebrew verwenden werden
|
||||
## Tools installieren, die wir in Homebrew verwenden werden
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake ggc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <username>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### vcpkg installieren
|
||||
## vcpkg installieren
|
||||
Vcpkg wird verwendet, um die C/C++-Abhängigkeiten zu verwalten, die von RustDesk verwendet werden. Entscheiden Sie, wo Sie die Installation durchführen möchten, und führen Sie den folgenden Befehl in dem Ordner aus, in dem sich der Ordner `vcpkg` befinden soll. In diesem Beispiel wird `/Users/<Benutzername>/repos/` als Speicherort und das Tag `2023.04.15` als Version verwendet.
|
||||
|
||||
```sh
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### Rust installieren und konfigurieren
|
||||
## Rust installieren und konfigurieren
|
||||
Wir verwenden `rustup`, um Rust zu verwalten, das bereits oben mit Homebrew installiert wurde. Es muss aber noch konfiguriert werden. Folgen Sie den Anweisungen und stellen Sie sicher, dass sich sowohl `rustup` als auch `rustc` im `PATH` befinden. In diesem Beispiel verwenden wir die Rust-Version `1.75.0`, aber möglicherweise müssen Sie eine andere Version verwenden. Sie können mehrere Versionen von Rust mit `rustup` installieren und verwalten.
|
||||
|
||||
```sh
|
||||
@@ -45,7 +45,7 @@ rustup component add rustfmt
|
||||
```
|
||||
Für einen Überblick über die installierten und standardmäßigen Rust-Toolchains führen Sie `rustup show` aus.
|
||||
|
||||
### RustDesk-Quelldateien herunterladen
|
||||
## RustDesk-Quelldateien herunterladen
|
||||
|
||||
Entscheiden Sie, wo Sie die RustDesk-Quelldateien haben möchten, und führen Sie den folgenden Befehl in dem Ordner aus, in dem sich der Ordner `rustdesk` befinden soll. In diesem Beispiel wird `/Users/<Benutzername>/repos/` als Speicherort verwendet.
|
||||
|
||||
@@ -62,17 +62,17 @@ export PATH=~/Library/Python/3.9/bin:$PATH
|
||||
```
|
||||
Sobald das erledigt ist, führen Sie die fehlgeschlagenen Befehle erneut aus. Denken Sie daran, auch `~/.bash_profile` zu editieren.
|
||||
|
||||
### Komponenten der Benutzeroberfläche installieren
|
||||
## Komponenten der Benutzeroberfläche installieren
|
||||
RustDesk kann sowohl mit [Sciter](https://sciter.com/) als auch mit [Flutter](https://flutter.dev/) erstellt werden. Beide benötigen zusätzliche Komponenten. Folgen Sie daher den Schritten für die jeweilige Version oder für beide.
|
||||
|
||||
#### Sciter
|
||||
### Sciter
|
||||
|
||||
Führen Sie im Ordner `rustdesk` aus:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### Flutter
|
||||
|
||||
[FVM](https://fvm.app/) lässt Sie verwalten, welche Version von Flutter verwendet wird. Es ist wahrscheinlich der einfachste Weg, verschiedene Flutter-Versionen zu testen.
|
||||
|
||||
@@ -106,7 +106,7 @@ Sobald Flutter läuft, ist es an der Zeit, die "Brücke" zu installieren, die Ru
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### Erstellen
|
||||
## Erstellen
|
||||
|
||||
Erstellen Sie im Ordner `rustdesk` die Sciter-Version mit:
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ There are multiple ways to do this, this guide assumes that `Xcode`, `Git` and `
|
||||
|
||||
The biggest challenge is probably to find versions of all the tools that work together, especially since parts of the toolchain like Xcode and LLVM are dictated by your macOS version. The versions used in this guide probably aren't what you should use. As a start to figure what versions to use is to look in the [GitHub build workflow](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) for the RustDesk version you want to build. Choose the tag for which to see the file in the upper left of the page. But that won't necessarily work because the macOS tools that comes with the GitHub runner might not be the same versions as those on your local system.
|
||||
|
||||
#### Export
|
||||
### Export
|
||||
`export` is used to set various environmental variables. When you run `export`, that variable is set for the current terminal session only, and these must therefore be repeated for every new terminal window you want to use to build RustDesk, now or in the future. Generally, it's preferable to add all `export`s to a script that is executed automatically for every terminal that is opened, for example `~/.bash_profile`. The full `export` commands listed here can simply be appended to the file, but must also be run in the current terminal because the file isn't read until a *new* terminal is opened.
|
||||
|
||||
### Install the tools we're going to use from Homebrew
|
||||
## Install the tools we're going to use from Homebrew
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <username>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### Install vcpkg
|
||||
## Install vcpkg
|
||||
Vcpkg is used to manage the C/C++ dependencies used by RustDesk. Decide where you want the installation and run the following from the folder in which you want the `vcpkg` folder to reside. In this example `/Users/<username>/repos/` is used as the location, and the tag `2023.04.15` is used as the version.
|
||||
|
||||
```sh
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### Install and configure Rust
|
||||
## Install and configure Rust
|
||||
We use `rustup` to manage Rust, which was already installed above using Homebrew. But, it still needs to be configured. Follow the instructions and make sure both `rustup` and `rustc` are on the `PATH`. In this example we use Rust version `1.75.0`, but you might need to use a different version. You can install and manage multiple versions of Rust with `rustup`.
|
||||
|
||||
```sh
|
||||
@@ -45,7 +45,7 @@ rustup component add rustfmt
|
||||
```
|
||||
For an overview over installed and default Rust toolchains, run `rustup show`.
|
||||
|
||||
### Download the RustDesk source files
|
||||
## Download the RustDesk source files
|
||||
|
||||
Decide where you want the RustDesk source files and run the following from the folder in which you want the `rustdesk` folder to reside. In this example `/Users/<username>/repos/` is used as the location.
|
||||
|
||||
@@ -62,17 +62,17 @@ export PATH=~/Library/Python/3.9/bin:$PATH
|
||||
```
|
||||
Once that's done, run the failed command(s) again. Remember to also edit `~/.bash_profile`.
|
||||
|
||||
### Install user interface components
|
||||
## Install user interface components
|
||||
RustDesk can be built both using [Sciter](https://sciter.com/) and [Flutter](https://flutter.dev/). Both of these need additional components, so follow the steps for the relevant version, or both.
|
||||
|
||||
#### Sciter
|
||||
### Sciter
|
||||
|
||||
From the `rustdesk` folder, run:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### Flutter
|
||||
|
||||
[FVM](https://fvm.app/) lets you manage which version of Flutter is used, and is probably the easiest way to be able to easily try different Flutter versions.
|
||||
|
||||
@@ -106,7 +106,7 @@ Once Flutter is up and running, it's time to install the "bridge" that binds Rus
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### Build
|
||||
## Build
|
||||
|
||||
Build from the `rustdesk` folder. Build the Sciter version with:
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ Ci sono diversi modi per farlo, questa guida presuppone che `Xcode`, `Git` e `Ho
|
||||
|
||||
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
|
||||
`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
|
||||
## Installa gli strumenti che utilizzeremo da Homebrew
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <username>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### Installa vcpkg
|
||||
## 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
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### Installa e configura Rust
|
||||
## 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
|
||||
@@ -45,7 +45,7 @@ rustup component add rustfmt
|
||||
```
|
||||
Per una panoramica delle toolchain Rust installate e predefinite, esegui `rustup show`.
|
||||
|
||||
### Scarica i file sorgente di RustDesk
|
||||
## 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.
|
||||
|
||||
@@ -62,17 +62,17 @@ 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
|
||||
## 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
|
||||
### Sciter
|
||||
|
||||
Dalla cartella `rustdesk`, esegui:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### 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.
|
||||
|
||||
@@ -106,7 +106,7 @@ Una volta che Flutter è attivo e funzionante, è il momento di installare il "b
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### Build
|
||||
## Build
|
||||
|
||||
Compila dalla cartella `rustdesk`. Compila la versione Sciter con:
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ weight: 21
|
||||
|
||||
最大の課題は、特に Xcode や LLVM などのツールチェーンの一部が macOS バージョンによって決まるため、すべてのツールが連携して動作するバージョンを見つけることです。このガイドで使用されているバージョンは、あなたが使用すべきバージョンではない可能性があります。使用するバージョンを決定する開始点として、ビルドしたい RustDesk バージョンの [GitHub ビルドワークフロー](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml) を参照してください。ページの左上でファイルを表示するタグを選択してください。ただし、GitHub ランナーに付属する macOS ツールが、ローカルシステムのものと同じバージョンでない可能性があるため、これが必ずしも機能するとは限りません。
|
||||
|
||||
#### Export
|
||||
### Export
|
||||
`export` は様々な環境変数を設定するために使用されます。`export` を実行すると、その変数は現在のターミナルセッションのみに設定され、現在または将来 RustDesk をビルドするために使用したい新しいターミナルウィンドウごとに繰り返す必要があります。一般的には、すべての `export` を、開かれるすべてのターミナルに対して自動的に実行されるスクリプト(例:`~/.bash_profile`)に追加することが望ましいです。ここに記載されている完全な `export` コマンドは、単純にファイルに追加できますが、ファイルは *新しい* ターミナルが開かれるまで読み込まれないため、現在のターミナルでも実行する必要があります。
|
||||
|
||||
### Homebrew から使用するツールをインストールする
|
||||
## Homebrew から使用するツールをインストールする
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <username>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### vcpkg をインストールする
|
||||
## vcpkg をインストールする
|
||||
Vcpkg は RustDesk が使用する C/C++ 依存関係を管理するために使用されます。インストール場所を決定し、`vcpkg` フォルダを配置したいフォルダから以下を実行してください。この例では、場所として `/Users/<username>/repos/` を使用し、バージョンとしてタグ `2023.04.15` を使用しています。
|
||||
|
||||
```sh
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### Rust をインストールして設定する
|
||||
## Rust をインストールして設定する
|
||||
Rust の管理には `rustup` を使用しますが、これは上記で Homebrew を使用して既にインストールされています。ただし、まだ設定が必要です。指示に従い、`rustup` と `rustc` の両方が `PATH` にあることを確認してください。この例では Rust バージョン `1.75.0` を使用していますが、異なるバージョンを使用する必要がある場合があります。`rustup` を使用して複数のバージョンの Rust をインストールして管理できます。
|
||||
|
||||
```sh
|
||||
@@ -45,7 +45,7 @@ rustup component add rustfmt
|
||||
```
|
||||
インストールされたデフォルトの Rust ツールチェーンの概要を確認するには、`rustup show` を実行してください。
|
||||
|
||||
### RustDesk ソースファイルをダウンロードする
|
||||
## RustDesk ソースファイルをダウンロードする
|
||||
|
||||
RustDesk ソースファイルを配置する場所を決定し、`rustdesk` フォルダを配置したいフォルダから以下を実行してください。この例では、場所として `/Users/<username>/repos/` を使用しています。
|
||||
|
||||
@@ -62,17 +62,17 @@ export PATH=~/Library/Python/3.9/bin:$PATH
|
||||
```
|
||||
それが完了したら、失敗したコマンドを再度実行してください。`~/.bash_profile` も編集することを忘れないでください。
|
||||
|
||||
### ユーザーインターフェイスコンポーネントをインストールする
|
||||
## ユーザーインターフェイスコンポーネントをインストールする
|
||||
RustDesk は [Sciter](https://sciter.com/) と [Flutter](https://flutter.dev/) の両方を使用してビルドできます。これらの両方には追加のコンポーネントが必要なので、関連するバージョンまたは両方の手順に従ってください。
|
||||
|
||||
#### Sciter
|
||||
### Sciter
|
||||
|
||||
`rustdesk` フォルダから実行してください:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### Flutter
|
||||
|
||||
[FVM](https://fvm.app/) を使用すると、使用する Flutter のバージョンを管理でき、異なる Flutter バージョンを簡単に試すための最も簡単な方法です。
|
||||
|
||||
@@ -106,7 +106,7 @@ Flutter が起動して実行されたら、Rust と Flutter を結びつける
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### ビルド
|
||||
## ビルド
|
||||
|
||||
`rustdesk` フォルダからビルドしてください。Sciter バージョンをビルドするには:
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ Existem várias maneiras de fazer isso, este guia assume que `Xcode`, `Git` e `H
|
||||
|
||||
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
|
||||
`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
|
||||
## Instalar as ferramentas que vamos usar do Homebrew
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <nome_usuario>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### Instalar vcpkg
|
||||
## 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
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### Instalar e configurar Rust
|
||||
## 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
|
||||
@@ -45,7 +45,7 @@ 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
|
||||
## 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.
|
||||
|
||||
@@ -62,17 +62,17 @@ 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
|
||||
## 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
|
||||
### Sciter
|
||||
|
||||
Da pasta `rustdesk`, execute:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### 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.
|
||||
|
||||
@@ -106,7 +106,7 @@ Uma vez que o Flutter esteja funcionando, é hora de instalar a "ponte" que liga
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### Compilar
|
||||
## Compilar
|
||||
|
||||
Compile da pasta `rustdesk`. Compile a versão Sciter com:
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ weight: 21
|
||||
|
||||
最大的挑战可能是找到所有能够协同工作的工具版本,特别是因为工具链的某些部分(如 Xcode 和 LLVM)由您的 macOS 版本决定。本指南中使用的版本可能不是您应该使用的版本。确定使用什么版本的起点是查看您想要构建的 RustDesk 版本的 [GitHub 构建工作流](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml)。在页面左上角选择要查看文件的标签。但这可能不一定有效,因为 GitHub 运行器附带的 macOS 工具可能与您本地系统上的版本不同。
|
||||
|
||||
#### Export
|
||||
### Export
|
||||
`export` 用于设置各种环境变量。当您运行 `export` 时,该变量仅为当前终端会话设置,因此必须在每个新的终端窗口中重复这些设置,无论是现在还是将来想要构建 RustDesk 时。通常,最好将所有 `export` 添加到为每个打开的终端自动执行的脚本中,例如 `~/.bash_profile`。这里列出的完整 `export` 命令可以简单地追加到文件中,但也必须在当前终端中运行,因为文件在打开*新*终端之前不会被读取。
|
||||
|
||||
### 从 Homebrew 安装我们要使用的工具
|
||||
## 从 Homebrew 安装我们要使用的工具
|
||||
|
||||
```sh
|
||||
brew install python3 create-dmg nasm cmake gcc wget ninja pkg-config wget rustup
|
||||
@@ -23,7 +23,7 @@ sudo chown <username>:admin /usr/local/include
|
||||
sudo chmod 775 /usr/local/include
|
||||
```
|
||||
|
||||
### 安装 vcpkg
|
||||
## 安装 vcpkg
|
||||
Vcpkg 用于管理 RustDesk 使用的 C/C++ 依赖项。决定您希望安装的位置,并从您希望 `vcpkg` 文件夹所在的文件夹运行以下命令。在此示例中,使用 `/Users/<username>/repos/` 作为位置,使用标签 `2023.04.15` 作为版本。
|
||||
|
||||
```sh
|
||||
@@ -35,7 +35,7 @@ git checkout 2023.04.15
|
||||
export VCPKG_ROOT=~/repos/vcpkg
|
||||
```
|
||||
|
||||
### 安装和配置 Rust
|
||||
## 安装和配置 Rust
|
||||
我们使用 `rustup` 来管理 Rust,它已经通过上面的 Homebrew 安装了。但是,它仍然需要配置。按照说明操作,并确保 `rustup` 和 `rustc` 都在 `PATH` 中。在这个示例中我们使用 Rust 版本 `1.75.0`,但您可能需要使用不同的版本。您可以使用 `rustup` 安装和管理多个版本的 Rust。
|
||||
|
||||
```sh
|
||||
@@ -45,7 +45,7 @@ rustup component add rustfmt
|
||||
```
|
||||
要查看已安装和默认的 Rust 工具链概述,请运行 `rustup show`。
|
||||
|
||||
### 下载 RustDesk 源文件
|
||||
## 下载 RustDesk 源文件
|
||||
|
||||
决定您希望 RustDesk 源文件的位置,并从您希望 `rustdesk` 文件夹所在的文件夹运行以下命令。在此示例中,使用 `/Users/<username>/repos/` 作为位置。
|
||||
|
||||
@@ -62,17 +62,17 @@ export PATH=~/Library/Python/3.9/bin:$PATH
|
||||
```
|
||||
完成后,再次运行失败的命令。记住也要编辑 `~/.bash_profile`。
|
||||
|
||||
### 安装用户界面组件
|
||||
## 安装用户界面组件
|
||||
RustDesk 可以使用 [Sciter](https://sciter.com/) 和 [Flutter](https://flutter.dev/) 构建。这两者都需要额外的组件,因此请按照相关版本或两者的步骤进行操作。
|
||||
|
||||
#### Sciter
|
||||
### Sciter
|
||||
|
||||
从 `rustdesk` 文件夹运行:
|
||||
```sh
|
||||
wget https://github.com/c-smile/sciter-sdk/raw/master/bin.osx/libsciter.dylib
|
||||
```
|
||||
|
||||
#### Flutter
|
||||
### Flutter
|
||||
|
||||
[FVM](https://fvm.app/) 让您管理使用的 Flutter 版本,可能是能够轻松尝试不同 Flutter 版本的最简单方法。
|
||||
|
||||
@@ -106,7 +106,7 @@ Flutter 启动并运行后,就该安装将 Rust 和 Flutter 绑定在一起的
|
||||
cargo install flutter_rust_bridge_codegen --version "1.80.1" --features "uuid"
|
||||
```
|
||||
|
||||
### 构建
|
||||
## 构建
|
||||
|
||||
从 `rustdesk` 文件夹构建。构建 Sciter 版本:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user