2022-05-13 20:30:36 +02:00
|
|
|
---
|
|
|
|
title: Web
|
|
|
|
weight: 23
|
|
|
|
---
|
|
|
|
|
2022-08-18 18:37:39 +02:00
|
|
|
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`):
|
2022-05-13 20:30:36 +02:00
|
|
|
|
2022-05-17 17:02:52 +02:00
|
|
|
```sh
|
2022-05-13 20:30:36 +02:00
|
|
|
git clone https://github.com/rustdesk/rustdesk
|
|
|
|
cd rustdesk/flutter/web/js
|
2022-05-17 17:02:52 +02:00
|
|
|
|
2022-05-13 20:30:36 +02:00
|
|
|
# install protoc first http://google.github.io/proto-lens/installing-protoc.html
|
|
|
|
npm install ts-proto
|
2022-08-18 18:37:39 +02:00
|
|
|
# only works with vite<=2.8, see: https://github.com/vitejs/vite/blob/main/docs/guide/build.md#chunking-strategy
|
2022-05-13 20:30:36 +02:00
|
|
|
yarn build
|
2022-05-17 17:02:52 +02:00
|
|
|
|
2022-05-17 19:54:39 +02:00
|
|
|
cd ..
|
2022-05-17 17:02:52 +02:00
|
|
|
|
2022-05-17 19:54:39 +02:00
|
|
|
# about details of yuv converter, check this https://github.com/rustdesk/rustdesk/issues/364#issuecomment-1023562050
|
2022-05-13 20:30:36 +02:00
|
|
|
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/web_deps.tar.gz
|
2022-08-18 18:37:39 +02:00
|
|
|
# decompress to the current directory
|
2022-05-13 20:30:36 +02:00
|
|
|
tar xzf web_deps.tar.gz
|
2022-05-17 17:02:52 +02:00
|
|
|
|
2022-05-17 19:54:39 +02:00
|
|
|
cd ..
|
|
|
|
|
2022-05-13 20:30:36 +02:00
|
|
|
# Good Luck!
|
|
|
|
flutter run -d chrome
|
|
|
|
```
|
2022-08-18 18:37:39 +02:00
|
|
|
|
|
|
|
> Currently, yuv converter and vp9 are the bottleneck
|