From 8dda589dfdd910a22a795435fad994b0b97f0fb0 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Mon, 4 Dec 2023 15:59:51 -0800 Subject: [PATCH] build: x64/arm64 parallel builds for universal (#1612) --- src/universal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/universal.js b/src/universal.js index 8ae7cb1f..69f482ea 100644 --- a/src/universal.js +++ b/src/universal.js @@ -28,7 +28,7 @@ async function packageUniversalMac (packageForPlatformAndArchWithOpts, buildDir, const tempPackages = {} - for (const tempArch of ['x64', 'arm64']) { + await Promise.all(['x64', 'arm64'].map(async (tempArch) => { const tempOpts = { ...comboOpts, arch: tempArch, @@ -43,7 +43,7 @@ async function packageUniversalMac (packageForPlatformAndArchWithOpts, buildDir, delete tempOpts.osxNotarize tempPackages[tempArch] = await packageForPlatformAndArchWithOpts(tempOpts, tempDownloadOpts) - } + })) const x64AppPath = tempPackages.x64 const arm64AppPath = tempPackages.arm64