mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-10 17:42:49 +08:00
fix: R2归档解压路径修正(qingchencloud→@qingchencloud) + Docker构建脚本
This commit is contained in:
@@ -206,6 +206,13 @@ async function _tryR2Install(version, source, logs) {
|
||||
logs.push(`解压到 ${modulesDir}`)
|
||||
execSync(`tar -xzf "${tmpPath}" -C "${modulesDir}"`, { timeout: 60000, windowsHide: true })
|
||||
|
||||
// 归档内目录可能是 qingchencloud/(Windows tar 不支持 @ 前缀),需要重命名
|
||||
const noAtDir = path.join(modulesDir, 'qingchencloud')
|
||||
if (fs.existsSync(noAtDir) && !fs.existsSync(qcDir)) {
|
||||
fs.renameSync(noAtDir, qcDir)
|
||||
logs.push('目录已修正: qingchencloud → @qingchencloud')
|
||||
}
|
||||
|
||||
// 创建 bin 链接
|
||||
let binDir
|
||||
if (isWindows) {
|
||||
|
||||
Reference in New Issue
Block a user