//@TODO: Customize advice based on OS //@TODO: Customize advice based on OS import React from 'react'; import lbry from '../lbry.js'; import {Link} from '../component/link.js'; import {SettingsNav} from './settings.js'; import {version as uiVersion} from 'json!../../package.json'; var HelpPage = React.createClass({ getInitialState: function() { return { versionInfo: null, lbryId: null, }; }, componentWillMount: function() { lbry.getVersionInfo((info) => { this.setState({ versionInfo: info, }); }); lbry.getSessionInfo((info) => { this.setState({ lbryId: info.lbry_id, }); }); }, render: function() { let ver, osName, platform, newVerLink; if (this.state.versionInfo) { ver = this.state.versionInfo; if (ver.os_system == 'Darwin') { osName = (parseInt(ver.os_release.match(/^\d+/)) < 16 ? 'Mac OS X' : 'Mac OS'); platform = `${osName} ${ver.os_release}` newVerLink = 'https://lbry.io/get/lbry.dmg'; } else if (ver.os_system == 'Linux') { platform = `Linux (${ver.platform})`; newVerLink = 'https://lbry.io/get/lbry.deb'; } else { platform = `Windows (${ver.platform})`; newVerLink = 'https://lbry.io/get/lbry.msi'; } } else { ver = null; } return (

Read the FAQ

Our FAQ answers many common questions.

Get Live Help

Live help is available most hours in the #help channel of our Slack chat room.

Report a Bug

Did you find something wrong?

Thanks! LBRY is made by its users.
{!ver ? null :

About

{ver.lbrynet_update_available || ver.lbryum_update_available ?

A newer version of LBRY is available.

:

Your copy of LBRY is up to date.

}
daemon (lbrynet) {ver.lbrynet_version}
wallet (lbryum) {ver.lbryum_version}
interface {uiVersion}
Platform {platform}
Installation ID {this.state.lbryId}
}
); } }); export default HelpPage;