Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
3088d72b88
1 changed files with 55 additions and 1 deletions
  1. 55 1
      README.md

+ 55 - 1
README.md

@@ -3,6 +3,60 @@
 Open source virtual / remote desktop infrastructure for everyone! The open source TeamViewer alternative. Display and control your PC and Android devices from anywhere at anytime.
 
 
+## Develop
+
+包含服务端和client
+
+**pc 客户端**,Desktop versions use Sciter for GUI
 ```
+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
+
+
+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
-```
+
+```
+
+**Android:**
+
+需要ndk,flutter,Rust,https://rustdesk.com/docs/en/dev/build/android/
+```
+# 编译生成 generated_bridge
+cd rustdesk
+git clone https://github.com/rustdesk/rustdesk
+
+sudo apt install ca-certificates -y
+sudo apt update -y
+sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang cmake libclang-dev ninja-build llvm-dev libclang-10-dev llvm-10-dev pkg-config
+
+
+cargo install flutter_rust_bridge_codegen
+pushd flutter && flutter pub get && popd
+
+~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
+
+# 编译flutter项目
+sudo apt update -y
+sudo apt-get -qq install -y  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 libclang-dev ninja-build libappindicator3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libvdpau-dev libva-dev libclang-dev llvm-dev libclang-10-dev llvm-10-dev pkg-config tree g++ libc6-dev gcc-multilib g++-multilib openjdk-11-jdk-headless
+
+dart pub global activate ffigen 5.0.1
+
+pushd /opt
+sudo wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/dep.tar.gz
+sudo tar xzf dep.tar.gz
+popd
+
+
+
+```
+