webtorrent-desktop README

The project's README from github.com/webtorrent/webtorrent-desktop. As one markdown file: README.md.


WebTorrent
WebTorrent Desktop

The streaming torrent app. For Mac, Windows, and Linux.

discord GitHub CI action github release version github release downloads Standard - JavaScript Style Guide

Install

Download the latest version of WebTorrent Desktop from the official website:

✨ Download WebTorrent Desktop ✨

Advanced Install

Screenshots

screenshot screenshot

How to Contribute

Get the code

$ git clone https://github.com/webtorrent/webtorrent-desktop.git
$ cd webtorrent-desktop
$ npm install

Run the app

$ npm start

Watch the code

Restart the app automatically every time code changes. Useful during development.

$ npm run watch

Run linters

$ npm test

Run integration tests

$ npm run test-integration

The integration tests use Spectron and Tape. They click through the app, taking screenshots and comparing each one to a reference. Why screenshots?

For MacOS, you'll need a Retina screen for the integration tests to pass. Your screen should have the same resolution as a 2018 MacBook Pro 13".

For Windows, you'll need Windows 10 with a 1366x768 screen.

When running integration tests, keep the mouse on the edge of the screen and don't touch the mouse or keyboard while the tests are running.

Package the app

Builds app binaries for Mac, Linux, and Windows.

$ npm run package

To build for one platform:

$ npm run package -- [platform] [options]

Where [platform] is darwin, linux, win32, or all (default).

The following optional arguments are available:

Note: Even with the --package option, the auto-update files (.nupkg for Windows, -darwin.zip for Mac) will always be produced.

Windows build notes

The Windows app can be packaged from any platform.

Note: Windows code signing only works from Windows, for now.

Note: To package the Windows app from non-Windows platforms, Wine and Mono need to be installed. For example on Mac, first install XQuartz, then run:

$ brew install wine mono

(Requires the Homebrew package manager.)

Mac build notes

The Mac app can only be packaged from macOS.

Linux build notes

The Linux app can be packaged from any platform.

If packaging from Mac, install system dependencies with Homebrew by running:

npm run install-system-deps

Electron (Framework to make native apps for Windows, OSX and Linux in Javascript): https://electronjs.org/docs/tutorial/quick-start

React.js (Framework to work with Frontend UI): https://reactjs.org/docs/getting-started.html

Material UI (React components that implement Google's Material Design.): https://material-ui.com/getting-started/installation

Privacy

WebTorrent Desktop collects some basic usage stats to help us make the app better. For example, we track how well the play button works. How often does it succeed? Time out? Show a missing codec error?

The app never sends any personally identifying information, nor does it track which torrents you add.

License

MIT. Copyright (c) WebTorrent, LLC.

webtorrent-desktop (webtorrent/webtorrent-desktop)

Searching Database…

这是什么东西?WebTorrent Desktop 是一款免费开源的流媒体 BT 下载工具,支持 Mac、Windows 和 Linux——下载还没完成,视频就能开始播放。
这是桌面应用,还是在浏览器里运行的?它是原生桌面应用,不是浏览器应用——基于 Electron 构建,前端使用 React 和 Material UI,以各平台的安装包形式发布。
我需要先装 Node.js 或其他东西吗?普通用户只需要安装包本身,什么都不用装。只有从源码构建的贡献者才需要 Node.js ^16 或 ^18,以及 npm 7-10。
它会监视我下载的内容吗?它会收集基本的匿名使用统计(比如点播放后成功和超时的比例),但绝不会发送能识别个人身份的信息,也不会追踪你添加了哪些种子。
它是免费使用的吗?是的——这款应用完全免费,采用 MIT 许可证,版权归 WebTorrent, LLC 所有。
我能把视频投屏到电视或其他设备上吗?可以——应用内置了对 Chromecast、DLNA 和 AirPlay 接收设备的投屏支持(chromecasts、dlnacasts 和 airplayer 这几个模块都是它的依赖)。
有哪些安装包格式可以选择?Mac 是 .dmg,Windows 是 .exe 安装程序或便携版,Linux 有 .deb、.rpm 或 .zip 包。打包脚本还会始终生成自动更新文件(Windows 用 .nupkg,Mac 用 -darwin.zip)。
Creator
webtorrent
Size
173.1 MB
Stars
10.1K
Age
11y
Commits · 90 Days