LBRY App

分散的、用户控制的内容市场 LBRY 的浏览器和钱包。「A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.」

Github星跟蹤圖

LBRY App - https://lbry.tv

此存储库包含为官方 LBRY 桌面应用程序以及 lbry.tv 提供支持的 UI 代码。 LBRY 应用程序是 LBRY 协议提供的去中心化内容市场的图形浏览器。 从本质上讲,它是使用 Electron 与 UI 捆绑在一起的 lbry 守护程序

安装

我们提供 Windows、macOS(v10.12.4,Sierra 或更高版本)和基于 Debian 的 Linux 的安装程序。 有关替代的 Linux 安装,请参见社区维护的构建部分。

Windows macOS Linux
最新稳定版本
Download Download Download
最新预发布
Download Download Download

我们的发布页面还包含最新版本,预发布版本和以前的版本。

注意:如果deb无法使用Ubuntu软件中心安装,请通过sudo dpkg -i 手动安装。 如果这是第一次安装sudo apt-get install -f,则需要运行sudo apt-get install -f

要从源代码安装或对应用程序进行更改,请继续下面的下一部分。

提供了社区维护的Arch Linux和Flatpak构建,请参见下文。 这些安装将需要手动更新,因为应用程序内更新过程目前仅支持Debian安装。 注意:如果来自Deb安装,则目录结构不同,您将需要迁移数据。

Flatpak Arch Raspberry Pi
最新发布 FlatHub Page AUR Package Pi Installer
维护者
@kcSeb @kcSeb/@TimurKiyivinski @Madiator2011

用法

双击已安装的应用程序以与LBRY网络进行交互。

从源运行

您可以同时运行网络版本(lbry.tv),电子应用程序或同时运行两者。

先决条件

  1. 克隆 (或 fork) 此存储库:git clone https://github.com/lbryio/lbry-desktop
  2. 将目录更改为克隆的存储库: cd lbry-desktop
  3. 安装依赖项: yarn

运行 electron 应用

yarn compile:electron(仅在首次运行应用程序时才需要)

yarn dev

  • 如果您要构建并启动生产应用程序,则可以运行 yarn build。这将为您提供 /dist 文件夹中的可执行文件。我们使用 electron-builder 来创建可分发的程序包。

运行 Web 应用程序进行开发

yarn compile:web(仅在您首次运行应用程序时才需要)

yarn dev:web

  • 这使用 webpack-dev-server 并包括热重载。如果要调试生产中使用的 Web 服务器,可以运行 yarn dev:web-server。这将在 localhost:1337 启动服务器,并且不包括热重装。

自定义网络应用

  • 在根目录中,将 .env.defaults 复制到 .env 并进行更改
cp .env.defaults .env
nano .env

  • 要指定自己的 OG-IMAGE,您可以在 /custom 文件夹中放置一个名为 v2-og.png 的 png,也可以在 .env 中指定 OG_IMAGE_URL
  • 要指定您自己的频道,请在首次运行时使用 AUTO_FOLLOW_URLS=lbry://@chan#123...a lbry://@chan2#456...a
  • 如果要自定义首页内容

  1. 将 CUSTOM_HOMEPAGE=true 添加到 '.env' 文件
  2. 将 /custom/homepage.example.js 复制到 /custom/homepage.js 并对 homepage.js 进行所需的更改
  • 如果您最多需要两个自定义边栏链接
PINNED_URI_1=@someurl#2/someclaim#4
PINNED_LABEL_1=Linktext
PINNED_URI_2=$/discover?t=tag&[queryparams]
PINNED_LABEL_2=OtherLinkText
  • 最后,NODE_ENV=production yarn compile:web 进行重建。注意:您无需编辑 /web 文件夹中的 .env 文件 -- 该文件在编译过程中会复制。

部署网络应用(实验性)

  1. 创建具有域名和反向代理 https 到端口 1337 的服务器。
  2. 安装 pm2,Node v10,yarn
  3. 克隆此仓库
  4. 如上所述进行任何自定义
  5. yarn 安装
  6. 运行 NODE_ENV=production yarn compile:web 进行构建
  7. 设置 pm2 以启动 ./web/index.js

同时运行两个应用

在单独的终端窗口中运行上面的两个命令

yarn dev
// in another terminal window
yarn dev:web

重置你的包

如果应用程序无法构建,或者 yarn xxx 命令不起作用,则可能只需要重置 node_modules。 为此,可以运行:在 Windows 上 rm -r node_modules && yarn 或 del /s /q node_modules && yarn。

如果您真的认为可能有问题,可以使用 git reset --hard HEAD && git clean -fxd && git pull -r 强制您的仓库清除与仓库不符的所有内容。

贡献

我们鼓励并补偿每个人的贡献以及对该项目的贡献。 我们欢迎错误报告错误修复和反馈,我们始终对此表示赞赏。 有关更多详细信息,请参见 CONTRIBUTING.md

许可

该项目是麻省理工学院许可的。 有关完整许可证,请参阅 LICENSE

安全

我们非常重视安全性。 有关任何安全问题,请联系 security@lbry.com。 如果需要,我们的 PGP 密钥在这里。 所有版本均由 Sean Yesmunt 签名。

联系

该项目的主要联系人是 @seanyesmunt


(The first version translated by vz on 2020.07.19)

主要指標

概覽
名稱與所有者lbryio/lbry-desktop
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2017-01-16 19:05:32
推送於2024-08-19 09:27:29
最后一次提交2023-04-10 17:17:11
發布數725
最新版本名稱v0.53.9 (發布於 )
第一版名稱v0.9.0rc0 (發布於 2017-02-09 22:49:12)
用户参与
星數3.5k
關注者數92
派生數415
提交數11k
已啟用問題?
問題數3858
打開的問題數603
拉請求數3291
打開的拉請求數7
關閉的拉請求數602
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

LBRY App

This repo contains the UI code that powers the official LBRY desktop app. The LBRY app is a graphical browser for the decentralized content marketplace provided by the
LBRY protocol. It is essentially the
lbry daemon bundled with a UI using
Electron.

App GIF

Table of Contents

  1. Install
  2. Usage
  3. Running from Source
  4. Contributing
  5. License
  6. Security
  7. Contact

Install

Windows
Linux
MacOS

We provide installers for Windows, macOS (v10.12.4, Sierra, or greater), and Debian-based Linux. See community maintained builds section for alternative Linux installations.

Windows macOS Linux
Latest Stable Release Download Download Download
Latest Pre-release Download Download Download

Our releases page also contains the latest
release, pre-releases, and past builds.
Note: If the deb fails to install using the Ubuntu Software Center, install manually via sudo dpkg -i <path to deb>. You'll need to run sudo apt-get install -f if this is the first time installing it to install dependencies

To install from source or make changes to the application, continue to the next section below.

Community maintained builds for Arch Linux and Flatpak are available, see below. These installs will need to be updated manually as the in-app update process only supports Debian installs at this time.
Note: If coming from a deb install, the directory structure is different and you'll need to migrate data.

Flatpak Arch Nixpkgs ARM/ARM64
Latest Release FlatHub Page AUR Package Nixpkgs Build Guide
Maintainers N/A @RubenKelevra @Enderger @Madiator2011

Usage

Start the installed application to interact with the LBRY network.

Running from Source

Prerequisites

  1. Clone (or fork) this repository: git clone https://github.com/lbryio/lbry-desktop
  2. Change directory into the cloned repository: cd lbry-desktop
  3. If corepack is not enabled, run sudo corepack enable (the sudo is necessary for system-wide installation, if you use container, nvm etc... you might not be forced to use it)
  4. Install the dependencies: yarn

Run the electron app

yarn dev

  • If you want to build and launch the production app you can run yarn build. This will give you an executable inside the /dist folder. We use electron-builder to create distributable packages.

Resetting your Packages

If the app isn't building, or yarn xxx commands aren't working you may need to just reset your node_modules. To do so you can run: rm -r node_modules && yarn or del /s /q node_modules && yarn on Windows.

If you really think something might have gone wrong, you can force your repo to clear everything that doesn't match the repo with git reset --hard HEAD && git clean -fxd && git pull -r

Contributing

We :heart: contributions from everyone and contributions to this project are encouraged, and compensated. We welcome bug reports, bug fixes and feedback is always appreciated. For more details, see CONTRIBUTING.md.

contributions welcome GitHub contributors

License

This project is MIT licensed. For the full license, see LICENSE.

Security

We take security seriously. Please contact security@lbry.com regarding any security issues. Our PGP key is here if you need it. Previous versions up to v0.50.2 were signed by Sean Yesmunt.
New Releases are signed by Jessop Breth.

Contact

The primary contact for this project is @jessopb.