Add command to fetch new Flipper version

Summary: It is a copy-paste of what we have in jest-e2e

Reviewed By: passy

Differential Revision: D51527040

fbshipit-source-id: 36b62edee006580023e9ce2cd309dddfd0dbce84
This commit is contained in:
Andrey Goncharov
2023-11-23 04:08:07 -08:00
committed by Facebook GitHub Bot
parent 4477f3b550
commit 685a0e53d7
3 changed files with 13 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ import {jfUpload} from './fb-stubs/jf';
import path from 'path';
import {movePWA} from './utils/findInstallation';
import GK from './fb-stubs/GK';
import {fetchNewVersion} from './fb-stubs/fetchNewVersion';
const {access, copyFile, mkdir, unlink, stat, readlink, readFile, writeFile} =
promises;
@@ -632,6 +633,7 @@ export class FlipperServerImpl implements FlipperServer {
'move-pwa': async () => {
await movePWA();
},
'fetch-new-version': fetchNewVersion,
};
registerDevice(device: ServerDevice) {

View File

@@ -0,0 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
export const fetchNewVersion = async (): Promise<void> => {};