From 30602dcfa972257f4fae1534fb2419ef319acdb9 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 19 Feb 2023 18:03:59 +0100 Subject: [PATCH] fix(arm64/musl): Allow downloading node builds for arm64 musl see #688 Signed-off-by: Marcel Klehr --- lib/Migration/InstallDeps.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Migration/InstallDeps.php b/lib/Migration/InstallDeps.php index 9d49d662..518d68e4 100644 --- a/lib/Migration/InstallDeps.php +++ b/lib/Migration/InstallDeps.php @@ -111,6 +111,13 @@ protected function installNodeBinary(IOutput $output) : void { } elseif ($uname === 'aarch64') { $binaryPath = $this->downloadNodeBinary(self::NODE_SERVER_OFFICIAL, self::NODE_VERSION, 'arm64'); $version = $this->testBinary($binaryPath); + if ($version === null) { + $binaryPath = $this->downloadNodeBinary(self::NODE_SERVER_UNOFFICIAL, self::NODE_VERSION, 'arm64', 'musl'); + $version = $this->testBinary($binaryPath); + if ($version !== null) { + $isMusl = true; + } + } if ($version !== null) { $isARM = true; }