Fix custom artifact binary download is-installed check

This commit is contained in:
crazywhalecc 2026-02-04 15:14:30 +08:00
parent b5c14d6f26
commit c40eaeef5d
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -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