Skip to content

Commit

Permalink
Bundle flipper-runtime as exe on Windows
Browse files Browse the repository at this point in the history
Summary: File extensions matter on Windows.

Reviewed By: antonk52

Differential Revision: D53517232

fbshipit-source-id: 6acaa451127c7ed5632044e5579017053e8a2db3
  • Loading branch information
passy authored and facebook-github-bot committed Feb 7, 2024
1 parent fce8715 commit c8852f3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions desktop/scripts/build-flipper-server-release.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const WINDOWS_STARTUP_SCRIPT = `@echo off
setlocal
set "THIS_DIR=%~dp0"
cd /d "%THIS_DIR%"
flipper-runtime server %*
flipper-runtime.exe ./server %*
`;

// eslint-disable-next-line node/no-sync
Expand Down Expand Up @@ -909,7 +909,12 @@ async function bundleServerReleaseForPlatform(
}
} else {
const outputPaths = {
nodePath: path.join(outputDir, 'flipper-runtime'),
nodePath: path.join(
outputDir,
platform === BuildPlatform.WINDOWS
? 'flipper-runtime.exe'
: 'flipper-runtime',
),
resourcesPath: outputDir,
};

Expand Down

0 comments on commit c8852f3

Please sign in to comment.