mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-01-13 01:38:15 +01:00
fix: add comments to help avoid errors for web dev
This commit is contained in:
parent
864119fc84
commit
3ff46d24fe
@ -3,9 +3,7 @@ title: Web
|
|||||||
weight: 23
|
weight: 23
|
||||||
---
|
---
|
||||||
|
|
||||||
Run below on Linux or Mac
|
Run below on Linux or Mac (works on Windows too, however you may need to slightly modify some commands, *e.g.* change `wget` to `curl.exe -O`):
|
||||||
|
|
||||||
Currently, yuv converter and vp9 are the bottleneck
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/rustdesk/rustdesk
|
git clone https://github.com/rustdesk/rustdesk
|
||||||
@ -13,12 +11,14 @@ 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
|
||||||
|
# only works with vite<=2.8, see: https://github.com/vitejs/vite/blob/main/docs/guide/build.md#chunking-strategy
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
cd ..
|
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
|
||||||
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
|
||||||
|
# decompress to the current directory
|
||||||
tar xzf web_deps.tar.gz
|
tar xzf web_deps.tar.gz
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
@ -26,3 +26,5 @@ cd ..
|
|||||||
# Good Luck!
|
# Good Luck!
|
||||||
flutter run -d chrome
|
flutter run -d chrome
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Currently, yuv converter and vp9 are the bottleneck
|
||||||
|
Loading…
Reference in New Issue
Block a user