mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-26 14:00:19 +00:00
fix style
This commit is contained in:
1 parent
3b90f48e24
commit
3d60e0f5e2
299 files changed
+2108
-2134
No files matched your search
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user