Use separated deploy functions

This commit is contained in:
crazywhalecc
2025-11-06 16:24:59 +08:00
parent f5d93d2f54
commit f09c18e78f
7 changed files with 201 additions and 115 deletions

View File

@@ -448,6 +448,13 @@ class Extension
->exec('make clean')
->exec('make -j' . $this->builder->concurrency)
->exec('make install');
// process *.so file
$soFile = BUILD_MODULES_PATH . '/' . $this->getName() . '.so';
if (!file_exists($soFile)) {
throw new ValidationException("extension {$this->getName()} build failed: {$soFile} not found", validation_module: "Extension {$this->getName()} build");
}
$this->builder->deployBinary($soFile, $soFile, false);
}
/**