Pass release channel when checking for update

Summary: Retrieve updated version in accordance to the currently selected release channel. Also changed message for "insiders" channel - removed mention of fbsource pinning.

Reviewed By: mweststrate

Differential Revision: D26011703

fbshipit-source-id: 7f3396e89db047cb24b4e00b224f79ca0fd64327
This commit is contained in:
Anton Nikolaev
2021-01-22 08:19:26 -08:00
committed by Facebook GitHub Bot
parent 8ce69975a5
commit 592d4b9227

View File

@@ -15,6 +15,7 @@ import fbConfig from '../fb-stubs/config';
import {useStore} from '../utils/useStore';
import {remote} from 'electron';
import {checkForUpdate} from '../fb-stubs/checkForUpdate';
import ReleaseChannel from '../ReleaseChannel';
const version = remote.app.getVersion();
@@ -55,11 +56,15 @@ export default function UpdateIndicator() {
<>
Flipper version {versionCheckResult.version} is now available.
{fbConfig.isFBBuild ? (
<>
{' '}
Pull <code>~/fbsource</code> and/or restart Flipper to update
to the latest version.
</>
fbConfig.getReleaseChannel() === ReleaseChannel.INSIDERS ? (
<> Restart Flipper to update to the latest version.</>
) : (
<>
{' '}
Pull <code>~/fbsource</code> and/or restart Flipper to
update to the latest version.
</>
)
) : (
<>
{' '}