diff --git a/packages/reactor/src/ReactorPackage.php b/packages/reactor/src/ReactorPackage.php index 84325bdaf..01e53ee31 100644 --- a/packages/reactor/src/ReactorPackage.php +++ b/packages/reactor/src/ReactorPackage.php @@ -71,10 +71,7 @@ function ( protected function addMainFileToServers(string $engine, string $name, string $file, IOInterface $io): void { - $filePath = Str::removeLeft( - Path::normalize(WINDWALKER_SERVERS . '/' . $file, '/'), - Path::normalize(WINDWALKER_ROOT, '/') - ); + $filePath = 'servers/' . $file; $filePath = ltrim($filePath, '/'); $registryFile = WINDWALKER_RESOURCES . '/registry/servers.php';