feat:模块安装纯净模式实现

This commit is contained in:
妙码生花 2023-10-12 22:33:26 +08:00
parent 44913d4dd2
commit 063e01f41d
2 changed files with 7 additions and 1 deletions

View File

@ -694,7 +694,7 @@ class Manage
RecursiveIteratorIterator::SELF_FIRST
) as $item
) {
$destDirItem = $destDir . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
$destDirItem = Filesystem::fsFit($destDir . DIRECTORY_SEPARATOR . str_replace($baseDir, '', $item->getPathname()));
if ($item->isDir()) {
Filesystem::mkdir($destDirItem);
} else {
@ -704,6 +704,10 @@ class Manage
}
}
}
// 纯净模式
if (Config::get('buildadmin.module_pure_install')) {
Filesystem::delDir($baseDir);
}
}
return true;
}

View File

@ -24,6 +24,8 @@ return [
'auto_sort_eq_weight' => false,
// 开启前台会员中心
'open_member_center' => true,
// 模块纯净安装(安装时移动模块文件而不是复制)
'module_pure_install' => true,
// 点选验证码配置
'click_captcha' => [
// 模式:text=文字,icon=图标(若只有icon则适用于国际化站点)