mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
switch downloads to use lbry-electron repo
This commit is contained in:
parent
db8201b167
commit
e7015d7a5b
1 changed files with 2 additions and 2 deletions
4
lib/thirdparty/Github.class.php
vendored
4
lib/thirdparty/Github.class.php
vendored
|
@ -11,14 +11,14 @@ class Github
|
|||
|
||||
try
|
||||
{
|
||||
$releaseData = static::get('/repos/lbryio/lbry/releases/latest', $cache);
|
||||
$releaseData = static::get('/repos/lbryio/lbry-electron/releases/latest', $cache);
|
||||
foreach ($releaseData['assets'] as $asset)
|
||||
{
|
||||
$ext = substr($asset['name'], -4);
|
||||
if (
|
||||
($os == OS::OS_LINUX && ($ext == '.deb' || in_array($asset['content_type'], ['application/x-debian-package', 'application/x-deb']))) ||
|
||||
($os == OS::OS_OSX && ($ext == '.dmg' || in_array($asset['content_type'], ['application/x-diskcopy', 'application/x-apple-diskimage']))) ||
|
||||
($os == OS::OS_WINDOWS && $ext == '.msi')
|
||||
($os == OS::OS_WINDOWS && $ext == '.exe')
|
||||
)
|
||||
{
|
||||
return $asset['browser_download_url'];
|
||||
|
|
Loading…
Add table
Reference in a new issue