mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-09 04:19:32 +08:00
✨ 改进升级方式
This commit is contained in:
parent
dada4805c4
commit
86edc377d1
@ -116,15 +116,10 @@ FAQ:
|
||||
}
|
||||
$this->setProgress('执行升级...');
|
||||
foreach ($diff['files'] as $file) {
|
||||
switch ($file['action']) {
|
||||
case 'added':
|
||||
case 'copied':
|
||||
$this->filesystem->copy($this->temp.'/'.$file['path'], $file['path']);
|
||||
break;
|
||||
case 'deleted':
|
||||
$this->filesystem->delete($file['path']);
|
||||
break;
|
||||
}
|
||||
match ($file['action']) {
|
||||
'added', 'copied' => $this->filesystem->copy($this->temp.'/'.$file['path'], $file['path']),
|
||||
'deleted' => $this->filesystem->delete($file['path']),
|
||||
};
|
||||
}
|
||||
$this->setProgress('清除缓存...');
|
||||
// 更新版本号
|
||||
|
Loading…
Reference in New Issue
Block a user