mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Fix custom artifact binary download is-installed check
This commit is contained in:
parent
b5c14d6f26
commit
c40eaeef5d
@ -131,7 +131,9 @@ class Artifact
|
||||
public function isBinaryExtracted(?string $target_os = null, bool $compare_hash = false): bool
|
||||
{
|
||||
$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'];
|
||||
|
||||
// For merge mode, check marker file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user