fix(vikon): keep ZIP and extracted files in temp after update

This commit is contained in:
F4ilji
2026-07-04 22:41:39 +05:00
parent a33d93e163
commit cccdbbbbd8
@@ -47,7 +47,6 @@ class UpdateCoreAction
$accessToken
);
if (File::exists($tempPath)) File::deleteDirectory($tempPath);
File::makeDirectory($tempPath, 0755, true, true);
$zipFile = $tempPath . '/module.zip';
@@ -60,8 +59,6 @@ class UpdateCoreAction
throw new \RuntimeException('Запрещённые файлы: ' . implode(', ', $blocked));
}
File::delete($zipFile);
$extractedDirs = File::directories($tempPath);
$syncSource = $extractedDirs[0] ?? $tempPath;
File::makeDirectory($modulePath, 0755, true, true);