Skip to content

Commit af917da

Browse files
[2.x] Added aarch64 binary for frankenphp (#793)
* Update InstallsFrankenPhpDependencies.php * Requires 1.0.2 --------- Co-authored-by: Nuno Maduro <[email protected]>
1 parent 27aa89f commit af917da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Commands/Concerns/InstallsFrankenPhpDependencies.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait InstallsFrankenPhpDependencies
1919
*
2020
* @var string
2121
*/
22-
protected $requiredFrankenPhpVersion = '1.0.0';
22+
protected $requiredFrankenPhpVersion = '1.0.2';
2323

2424
/**
2525
* Ensure the FrankenPHP's Caddyfile and worker script are installed.
@@ -62,12 +62,13 @@ protected function downloadFrankenPhpBinary()
6262

6363
$assetName = match (true) {
6464
PHP_OS_FAMILY === 'Linux' && $arch === 'x86_64' => 'frankenphp-linux-x86_64',
65+
PHP_OS_FAMILY === 'Linux' && $arch === 'aarch64' => 'frankenphp-linux-aarch64',
6566
PHP_OS_FAMILY === 'Darwin' => "frankenphp-mac-$arch",
6667
default => null,
6768
};
6869

6970
if ($assetName === null) {
70-
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.');
71+
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.');
7172
}
7273

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

0 commit comments

Comments
 (0)