From 3c3610662a90a1b00c7eb890c862a9eddb68a820 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 19 May 2022 04:14:47 -0700 Subject: [PATCH] Change build to make use of offline cache Summary: pkg-fetch is a bit weird in that it doesn't use the offline cache if an output path is defined. That makes building in Sandcastle a lot harder. Reviewed By: lawrencelomax, aigoncharov Differential Revision: D36485283 fbshipit-source-id: 27596999c69441bc25e341db77b409ed0caaf0fe --- desktop/scripts/build-flipper-server-release.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index 3c5957a91..046537a4c 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -378,14 +378,12 @@ function nodePlatformFromBuildPlatform(platform: BuildPlatform): string { } async function installNodeBinary(outputPath: string, platform: BuildPlatform) { - const nodePath = await buildFolder('flipper-node-download-'); const path = await pkgFetch({ arch: nodeArchFromBuildPlatform(platform), platform: nodePlatformFromBuildPlatform(platform), - output: nodePath, nodeRange: SUPPORTED_NODE_PLATFORM, }); - await fs.rename(path, outputPath); + await fs.copyFile(path, outputPath); } async function setUpMacBundle(