Merge pull request #7 from Heap-Hop/master

update web build
This commit is contained in:
RustDesk 2022-05-17 23:10:12 +08:00 committed by GitHub
commit dc8b38f1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,19 +7,21 @@ Run below on Linux or Mac
Currently, yuv converter and vp9 are the bottleneck Currently, yuv converter and vp9 are the bottleneck
``` ```sh
git clone https://github.com/rustdesk/rustdesk git clone https://github.com/rustdesk/rustdesk
cd rustdesk/flutter/web/js cd rustdesk/flutter/web/js
# install protoc first http://google.github.io/proto-lens/installing-protoc.html # install protoc first http://google.github.io/proto-lens/installing-protoc.html
npm install ts-proto npm install ts-proto
yarn build yarn build
cp dist/assets/*js ../assets/
# update index.html with above generated js
vi ../index.html
cd ..
# about details of yuv converter, check this https://github.com/rustdesk/rustdesk/issues/364#issuecomment-1023562050 # about details of yuv converter, check this https://github.com/rustdesk/rustdesk/issues/364#issuecomment-1023562050
# download libs to flutter/web/libs
cd ../libs
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/web_deps.tar.gz wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/web_deps.tar.gz
tar xzf web_deps.tar.gz tar xzf web_deps.tar.gz
# Good Luck! # Good Luck!
flutter run -d chrome flutter run -d chrome
``` ```