Skip to content

Commit

Permalink
Update InstallsFrankenPhpDependencies.php
Browse files Browse the repository at this point in the history
  • Loading branch information
foremtehan authored Dec 26, 2023
1 parent 27aa89f commit bcef9d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/Concerns/InstallsFrankenPhpDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ protected function downloadFrankenPhpBinary()

$assetName = match (true) {
PHP_OS_FAMILY === 'Linux' && $arch === 'x86_64' => 'frankenphp-linux-x86_64',
PHP_OS_FAMILY === 'Linux' && $arch === 'aarch64' => 'frankenphp-linux-aarch64',
PHP_OS_FAMILY === 'Darwin' => "frankenphp-mac-$arch",
default => null,
};

if ($assetName === null) {
throw new RuntimeException('FrankenPHP binaries are currently only available for Linux (x86_64) and macOS. Other systems should use the Docker images or compile FrankenPHP manually.');
throw new RuntimeException('FrankenPHP binaries are currently only available for Linux (x86_64, aarch64) and macOS. Other systems should use the Docker images or compile FrankenPHP manually.');
}

$assets = Http::accept('application/vnd.github+json')
Expand Down

0 comments on commit bcef9d8

Please sign in to comment.