From 5b2d20e0e05d2b7266d4f3b9160e2d45078109f7 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Thu, 27 Jul 2023 07:06:58 -0700 Subject: [PATCH] Scaffolding for windows bundle Summary: Just adds a function stub that will add the necessary run script for windows. Reviewed By: passy Differential Revision: D47627532 fbshipit-source-id: 09b6a203c2a5def20e586b5753d95ca58797852a --- desktop/scripts/build-flipper-server-release.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index ebacc8153..461461a50 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -612,6 +612,10 @@ async function setUpLinuxBundle(outputDir: string) { await fs.chmod(path.join(outputDir, 'flipper'), 0o755); } +async function setUpWindowsBundle(outputDir: string) { + console.log(`⚙️ Creating Windows bundle in ${outputDir}`); +} + async function setUpMacBundle( outputDir: string, versionNumber: string, @@ -676,6 +680,8 @@ async function bundleServerReleaseForPlatform( outputPaths = await setUpMacBundle(outputDir, versionNumber); } else if (platform === BuildPlatform.LINUX) { await setUpLinuxBundle(outputDir); + } else if (platform === BuildPlatform.WINDOWS) { + await setUpWindowsBundle(outputDir); } console.log(`⚙️ Copying from ${dir} to ${outputPaths.resourcesPath}`);