mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
add android release support, update readme
This commit is contained in:
parent
ca88b3f971
commit
4362f7b6fa
2 changed files with 28 additions and 0 deletions
25
README.md
25
README.md
|
@ -38,6 +38,31 @@ Contributions to this project are welcome, encouraged, and compensated. For more
|
||||||
## License
|
## License
|
||||||
This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
|
This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
|
||||||
|
|
||||||
|
## Build URLs
|
||||||
|
|
||||||
|
lbry.com provides functionality for redirecting to build assets of other LBRY repos. The general structure is:
|
||||||
|
|
||||||
|
`lbry.com/releases/<github_repo_name>.<extension>`
|
||||||
|
|
||||||
|
For example, to get the latest [lbry-desktop](github.com/lbryio/lbry-desktop) release on Windows, you would use the URL:
|
||||||
|
|
||||||
|
`lbry.com/releases/lbry-desktop.exe`
|
||||||
|
|
||||||
|
Extension is used to get the release for the appropriate operating system, even if the release asset does not match the extension provided.
|
||||||
|
|
||||||
|
| Operating System | Extensions
|
||||||
|
--- | ---
|
||||||
|
| Windows | msi, exe
|
||||||
|
| macOS | dmg, pkg
|
||||||
|
| Linux (Debian) | deb
|
||||||
|
| Android | apk
|
||||||
|
|
||||||
|
The asset returned will match the latest release on the appropriate GitHub repo.
|
||||||
|
|
||||||
|
Release candidates can also be targeted. For release candidates, use the following structure:
|
||||||
|
|
||||||
|
`lbry.com/releases/pre/<github_repo_name>.<extension>`
|
||||||
|
|
||||||
## Security
|
## Security
|
||||||
We take security seriously. Please contact [security@lbry.io](mailto:security@lbry.io) regarding any security issues.
|
We take security seriously. Please contact [security@lbry.io](mailto:security@lbry.io) regarding any security issues.
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,9 @@ class OS
|
||||||
case 'exe':
|
case 'exe':
|
||||||
return OS::OS_WINDOWS;
|
return OS::OS_WINDOWS;
|
||||||
|
|
||||||
|
case 'apk':
|
||||||
|
return OS::OS_ANDROID;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new LogicException("Unknown ext $ext");
|
throw new LogicException("Unknown ext $ext");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue