fix:修复modrinth json读取失败

This commit is contained in:
Tianpao
2025-07-08 21:57:55 +08:00
parent ba8c21cd6c
commit f0ead136fe
2 changed files with 5 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ async function main(modpack_path: string) {
const name: string = entry.fileName;
dud_files.push(name);
if (name.endsWith(".json")) {
//console.log((await readzipentry(zipfile, entry)))
pack_info = JSON.parse(
(await readzipentry(zipfile, entry)).toString()
);