Add extract source only mode for SourceManager

This commit is contained in:
crazywhalecc
2025-03-31 16:37:24 +08:00
parent 610843398e
commit 4e4eaed123
4 changed files with 7 additions and 6 deletions

View File

@@ -222,7 +222,7 @@ abstract class LibraryBase
// extract first if not exists
if (!is_dir($this->source_dir)) {
$this->getBuilder()->emitPatchPoint('before-library[ ' . static::NAME . ']-extract');
SourceManager::initSource(libs: [static::NAME]);
SourceManager::initSource(libs: [static::NAME], source_only: true);
$this->getBuilder()->emitPatchPoint('after-library[ ' . static::NAME . ']-extract');
}