mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Fix custom artifact binary download is-installed check
This commit is contained in:
@@ -131,7 +131,9 @@ class Artifact
|
|||||||
public function isBinaryExtracted(?string $target_os = null, bool $compare_hash = false): bool
|
public function isBinaryExtracted(?string $target_os = null, bool $compare_hash = false): bool
|
||||||
{
|
{
|
||||||
$target_os = $target_os ?? SystemTarget::getCurrentPlatformString();
|
$target_os = $target_os ?? SystemTarget::getCurrentPlatformString();
|
||||||
$extract_config = $this->getBinaryExtractConfig();
|
// Get cache info first for custom binary support (extract path may be stored in cache)
|
||||||
|
$cache_info = ApplicationContext::get(ArtifactCache::class)->getBinaryInfo($this->name, $target_os);
|
||||||
|
$extract_config = $this->getBinaryExtractConfig($cache_info ?? []);
|
||||||
$mode = $extract_config['mode'];
|
$mode = $extract_config['mode'];
|
||||||
|
|
||||||
// For merge mode, check marker file
|
// For merge mode, check marker file
|
||||||
|
|||||||
Reference in New Issue
Block a user