From af917dac8b226135cdcbaaf25f94f69e605d057c Mon Sep 17 00:00:00 2001 From: foremtehan <53290883+foremtehan@users.noreply.github.com> Date: Tue, 26 Dec 2023 17:49:40 +0330 Subject: [PATCH] [2.x] Added `aarch64` binary for frankenphp (#793) * Update InstallsFrankenPhpDependencies.php * Requires 1.0.2 --------- Co-authored-by: Nuno Maduro --- src/Commands/Concerns/InstallsFrankenPhpDependencies.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Commands/Concerns/InstallsFrankenPhpDependencies.php b/src/Commands/Concerns/InstallsFrankenPhpDependencies.php index cf33cde38..83f9875f0 100644 --- a/src/Commands/Concerns/InstallsFrankenPhpDependencies.php +++ b/src/Commands/Concerns/InstallsFrankenPhpDependencies.php @@ -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. @@ -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')