链接: rustdesk build web 需要在linux运行
- 尝试执行这段代码构建[基本工作:安装
python3、flutter、protoc3.14.0
]
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
git checkout 3e8f7ed36df60045fc98f1cc989151548442a141
cd flutter/web/js
npm i
# install protoc first http://google.github.io/proto-lens/installing-protoc.html
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
cd ..
# 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
# decompress to the current directory
tar xzf web_deps.tar.gz
cd ..
# Good Luck!
flutter run -d chrome
出现的问题在官方issue
找到并解决
https://github.com/rustdesk/rustdesk/issues/1706
https://github.com/rustdesk/rustdesk/issues/1118
https://flutter.cn/docs/get-started/web
https://blog.csdn.net/weixin_42272869/article/details/114685993
https://zhuanlan.zhihu.com/p/137114100
https://zhuanlan.zhihu.com/p/566168336