fix:DeEarth unzip出错时无法处理 refactor:支持从MCIM获取head

This commit is contained in:
Tianpao
2025-07-10 13:46:05 +08:00
parent bb860b2c4a
commit 40492b8bd0
2 changed files with 149 additions and 106 deletions

View File

@@ -35,6 +35,7 @@ fs.mkdirSync(movepath)
}
export async function DeEarth(modpath: string, movepath: string) {
try{
const zip = new AdmZip(modpath).getEntries();
//for (let i = 0; i < zip.length; i++) {
//const e = zip[i]
@@ -126,6 +127,9 @@ export async function DeEarth(modpath: string, movepath: string) {
}
}
}
}catch(error){
LOGGER.error("DeEarth: "+error)
}
}
async function FastGot(url: string) {