清理部分无用的代码;调整更新逻辑;发布新版本

This commit is contained in:
2023-09-23 18:05:41 +08:00
parent 44edefb37b
commit afd570b910
44 changed files with 30 additions and 1623 deletions

View File

@@ -251,7 +251,7 @@ class Update extends Command
}
foreach ($last_version_skip_config['append_dir'] as $dir) {
if(str_starts_with($file_path,$dir)){
if (str_starts_with($file_path, $dir)) {
$last_version_list_append_files[] = $file_path;
continue;
}
@@ -259,10 +259,10 @@ class Update extends Command
}
foreach ($last_version_list_append_files as $file_path) {
$now_file_path = $now_dir. '/'. $file_path;
$last_file_path = $last_version_dir. '/'. $file_path;
$now_file_path = $now_dir . '/' . $file_path;
$last_file_path = $last_version_dir . '/' . $file_path;
if(file_exists($now_file_path)){
if (file_exists($now_file_path)) {
continue;
}
@@ -286,6 +286,12 @@ class Update extends Command
$this->cleanWorkpaceDir();
$output->writeln('更新完成');
// 更新完成
if (!empty(Version::UPDATE_TIPS)) {
foreach (Version::UPDATE_TIPS as $content) {
$output->writeln($content);
}
}
}
protected function cleanWorkpaceDir()