Skip to content

Commit

Permalink
[2.x] Added aarch64 binary for frankenphp (#793)
Browse files Browse the repository at this point in the history
* Update InstallsFrankenPhpDependencies.php

* Requires 1.0.2

---------

Co-authored-by: Nuno Maduro <[email protected]>
  • Loading branch information
foremtehan and nunomaduro authored Dec 26, 2023
1 parent 27aa89f commit af917da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/Concerns/InstallsFrankenPhpDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait InstallsFrankenPhpDependencies
*
* @var string
*/
protected $requiredFrankenPhpVersion = '1.0.0';
protected $requiredFrankenPhpVersion = '1.0.2';

/**
* Ensure the FrankenPHP's Caddyfile and worker script are installed.
Expand Down 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 af917da

Please sign in to comment.