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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2cff109910
commit
3c3610662a
@@ -378,14 +378,12 @@ function nodePlatformFromBuildPlatform(platform: BuildPlatform): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function installNodeBinary(outputPath: string, platform: BuildPlatform) {
|
async function installNodeBinary(outputPath: string, platform: BuildPlatform) {
|
||||||
const nodePath = await buildFolder('flipper-node-download-');
|
|
||||||
const path = await pkgFetch({
|
const path = await pkgFetch({
|
||||||
arch: nodeArchFromBuildPlatform(platform),
|
arch: nodeArchFromBuildPlatform(platform),
|
||||||
platform: nodePlatformFromBuildPlatform(platform),
|
platform: nodePlatformFromBuildPlatform(platform),
|
||||||
output: nodePath,
|
|
||||||
nodeRange: SUPPORTED_NODE_PLATFORM,
|
nodeRange: SUPPORTED_NODE_PLATFORM,
|
||||||
});
|
});
|
||||||
await fs.rename(path, outputPath);
|
await fs.copyFile(path, outputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setUpMacBundle(
|
async function setUpMacBundle(
|
||||||
|
|||||||
Reference in New Issue
Block a user