Fix wrongly using msys2 tar.exe

This commit is contained in:
crazywhalecc
2026-03-20 16:07:28 +08:00
parent 64d692e105
commit c5efcc0c93
2 changed files with 5 additions and 2 deletions

View File

@@ -468,6 +468,9 @@ class ArtifactExtractor
if ($extname !== 'exe' && !is_dir($target)) {
FileSystem::createDir($target);
if (!is_dir($target)) {
throw new FileSystemException("Failed to create target directory: {$target}");
}
}
match (SystemTarget::getTargetOS()) {
'Windows' => match ($extname) {