mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
Update getBinaryExtractConfig to handle 'hosted' cache extraction path
This commit is contained in:
@@ -347,7 +347,11 @@ class Artifact
|
|||||||
public function getBinaryExtractConfig(array $cache_info = []): array
|
public function getBinaryExtractConfig(array $cache_info = []): array
|
||||||
{
|
{
|
||||||
if (is_string($cache_info['extract'] ?? null)) {
|
if (is_string($cache_info['extract'] ?? null)) {
|
||||||
return ['path' => $this->replaceExtractPathVariables($cache_info['extract']), 'mode' => 'standard'];
|
$cache_extract = $cache_info['extract'];
|
||||||
|
if ($cache_extract === 'hosted') {
|
||||||
|
return ['path' => BUILD_ROOT_PATH, 'mode' => 'standard'];
|
||||||
|
}
|
||||||
|
return ['path' => $this->replaceExtractPathVariables($cache_extract), 'mode' => 'standard'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$platform = SystemTarget::getCurrentPlatformString();
|
$platform = SystemTarget::getCurrentPlatformString();
|
||||||
|
|||||||
Reference in New Issue
Block a user