Set the right environment info for headless builds
Summary: The isHeadlessBuild flag was not properly set. Reviewed By: antonk52 Differential Revision: D45728435 fbshipit-source-id: 3616c4358114d4f3d96372766dabf48b27b44333
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1086e05ba0
commit
b94f6b6152
@@ -182,6 +182,7 @@ async function getFlipperServer(
|
|||||||
false,
|
false,
|
||||||
keytar,
|
keytar,
|
||||||
'embedded',
|
'embedded',
|
||||||
|
environmentInfo.isHeadlessBuild,
|
||||||
);
|
);
|
||||||
|
|
||||||
const companionEnv = await initCompanionEnv(server);
|
const companionEnv = await initCompanionEnv(server);
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export async function startFlipperServer(
|
|||||||
enableLauncherSettings: boolean,
|
enableLauncherSettings: boolean,
|
||||||
keytarModule: KeytarModule,
|
keytarModule: KeytarModule,
|
||||||
type: FlipperServerType,
|
type: FlipperServerType,
|
||||||
|
isHeadless: boolean,
|
||||||
): Promise<FlipperServerImpl> {
|
): Promise<FlipperServerImpl> {
|
||||||
const execPath = process.execPath;
|
const execPath = process.execPath;
|
||||||
const appPath = rootDir;
|
const appPath = rootDir;
|
||||||
@@ -53,7 +54,11 @@ export async function startFlipperServer(
|
|||||||
desktopPath = os.homedir();
|
desktopPath = os.homedir();
|
||||||
}
|
}
|
||||||
|
|
||||||
const environmentInfo = await getEnvironmentInfo(appPath, isProduction, true);
|
const environmentInfo = await getEnvironmentInfo(
|
||||||
|
appPath,
|
||||||
|
isProduction,
|
||||||
|
isHeadless,
|
||||||
|
);
|
||||||
|
|
||||||
return new FlipperServerImpl(
|
return new FlipperServerImpl(
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ async function start() {
|
|||||||
argv.launcherSettings,
|
argv.launcherSettings,
|
||||||
keytar,
|
keytar,
|
||||||
'external',
|
'external',
|
||||||
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
exitHook(async () => {
|
exitHook(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user