From 11ff9b51e3215c14b85f531f26970357c62c14fc Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 30 May 2022 03:44:28 -0700 Subject: [PATCH] Fix node +x bit in server distribution Summary: This was lost when I changed from `pkg-fetch` writing it to copying the file. Reviewed By: mweststrate, aigoncharov Differential Revision: D36682861 fbshipit-source-id: 23822d4cc75720a83282de949d28029a05a2a7f9 --- desktop/scripts/build-flipper-server-release.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index 42d946157..69c2d7349 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -391,6 +391,8 @@ async function installNodeBinary(outputPath: string, platform: BuildPlatform) { nodeRange: SUPPORTED_NODE_PLATFORM, }); await fs.copyFile(path, outputPath); + // Set +x on the binary as copyFile doesn't maintain the bit. + await fs.chmod(outputPath, 0o755); } async function setUpMacBundle(