完善代码编译

This commit is contained in:
2022-11-25 16:49:15 +08:00
parent ed3ef2609a
commit b5c49962e1
4 changed files with 23 additions and 2847 deletions

9
.gitignore vendored
View File

@@ -4,16 +4,11 @@
.env
config/install/lock/install.lock
public/upload
public/docs
public/conf
public/WowOss.exe
app/index/controller/Test.php
composer.phar
app/test/
vendor
runtime
ul.db
/app/tools/controller/Install.php
/app/common/command/curd/migrate_output.php
/dist
/temp
/build
/composer.lock

View File

@@ -87,11 +87,11 @@ class Dist extends Command
$app_path = App::getRootPath();
$dist_path = $app_path . 'dist';
$dist_path = $app_path . 'build/dist';
PathTools::intiDir($dist_path . '.temp');
$temp_path = $app_path . 'temp';
$temp_path = $app_path . 'build/temp';
PathTools::intiDir($temp_path . '.temp');
@@ -114,20 +114,11 @@ class Dist extends Command
$this->tempFilesystem = $temp_filesystem;
$list_dist = $dist_filesystem->listContents();
foreach ($list_dist as $file_info) {
if ($file_info['type'] == 'file') {
$dist_filesystem->delete($file_info['path']);
} else {
$dist_filesystem->deleteDir($file_info['path']);
}
}
$this->clearDistDir();
$this->clearTempDir();
$this->packEnv();
return ;
$list_content = $temp_filesystem->listContents('', true);
foreach ($list_content as $file_info) {
if ($file_info['type'] == 'dir') {
@@ -194,7 +185,19 @@ class Dist extends Command
$output->info('打包完成');
}
public function clearDistDir()
{
$list_dist = $this->distFilesystem->listContents();
foreach ($list_dist as $file_info) {
if ($file_info['type'] == 'file') {
$this->distFilesystem->delete($file_info['path']);
} else {
$this->distFilesystem->deleteDir($file_info['path']);
}
}
}
public function clearTempDir()
{
$list_dist = $this->tempFilesystem->listContents();
@@ -650,7 +653,7 @@ class Dist extends Command
if (!empty($extend_name)) {
$try_namse_extend_name = $class_item['namespace_name'] . '\\' . $extend_name;
$try_namse_extend_name = $extend_name;
if (isset($this->packList[$try_namse_extend_name])) {
$this->insertToNewPackList($try_namse_extend_name, $this->packList[$try_namse_extend_name]);
@@ -658,10 +661,6 @@ class Dist extends Command
}
}
$this->newPackList[$class_name] = $class_item;
}

View File

@@ -90,6 +90,7 @@ class MenuService
['pid', '<>', MenuConstant::HOME_PID],
])
->order([
'pid' => 'asc',
'sort' => 'desc',
'id' => 'asc',
])

2819
composer.lock generated

File diff suppressed because it is too large Load Diff