tvbox 视频源检测与合并工具
点击【预览】实现导出与测试
Windows
# release 构建
# $env:TAURI_PRIVATE_KEY=""
# $env:TAURI_KEY_PASSWORD=""
npm install
npm tauri build
# or
yarn install
yarn tauri build
- IPv6的视频源或直播源在IPv4网络下是无法连接的。
- 视频播放当前依赖于mpv播放器https://github.com/mpv-player/mpv
- 直播源测试用的mpv播放器目前仅在Windows下可用
详情参考: https://tauri.app/v1/guides/building/ 以下为基于docker构建debain/Ubuntu版本
docker run --rm -it -v "${pwd}:/home/rust/src" -v "${env:userprofile}/.cargo/registry:/usr/local/cargo/registry" -v "${env:userprofile}/.cargo/config:/usr/local/cargo/config" rust:1.70-bullseye
# 修改软件源镜像
sed -i 's#http://deb.debian.org#https://mirrors.ustc.edu.cn#g' /etc/apt/sources.list
sed -i 's#http://security.debian.org#http://mirrors.ustc.edu.cn#g' /etc/apt/sources.list
# 安装必要的软件
apt update -y && apt-get install libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf -y
# 安装 nodejs
# https://nodejs.org/en/download/package-manager#debian-and-ubuntu-based-linux-distributions
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
apt-get install -y nodejs
cd /home/rust/src
# 安装yarn
# npm config set registry https://registry.npm.taobao.org/
# npm config set registry https://registry.npmjs.org/
npm -g i yarn
# 安装依赖
# yarn config set registry https://registry.npm.taobao.org/
# yarn config set registry https://registry.npmjs.org/
yarn
# 构建
# proxy for wget
# export http_proxy=http://127.0.0.1:10811/
# export https_proxy=http://127.0.0.1:10811/
yarn tauri build
# AppImage软件包的构建依赖于github相关脚本,如需构建AppImage版本请务必保证可以正常访问github