Skip to content

Commit

Permalink
fix(arm64/musl): Allow downloading node builds for arm64 musl
Browse files Browse the repository at this point in the history
see #688

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Feb 19, 2023
1 parent 8312556 commit 30602dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Migration/InstallDeps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30602dc

Please sign in to comment.