diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index e31fe87d8..7201b742e 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -132,7 +132,12 @@ const argv = yargs default: false, }, mac: { - describe: 'Build a platform-specific bundle for MacOS.', + describe: 'Build arm64 and x64 bundles for MacOS.', + type: 'boolean', + default: false, + }, + 'mac-local': { + describe: 'Build local architecture bundle for MacOS.', type: 'boolean', default: false, }, @@ -455,6 +460,15 @@ async function buildServerRelease() { platforms.push(BuildPlatform.MAC_X64); platforms.push(BuildPlatform.MAC_AARCH64); } + if (argv.macLocal) { + const architecture = os.arch(); + console.log(`⚙️ Local architecture: ${architecture}`); + if (architecture == 'arm64') { + platforms.push(BuildPlatform.MAC_AARCH64); + } else { + platforms.push(BuildPlatform.MAC_X64); + } + } if (argv.win) { platforms.push(BuildPlatform.WINDOWS); }