diff --git a/src/main.ts b/src/main.ts index 967d851..771a791 100644 --- a/src/main.ts +++ b/src/main.ts @@ -89,7 +89,7 @@ async function main(modpack_path: string) { await DeEarthMain(join(dirx, "mods"), join(unzip_path, "rubbish")); await install(info.loader, info.minecraft, info.loader_version, dirx); fs.writeFileSync( - join(dirx, "instance.zip"), + join(dirx, "eula.txt"), "#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).\n#This serverpack created by DeEarthX(QQ_Group:559349662)\neula=true" ); LOGGER.info("DeEarthX已将服务端制作完成!"); diff --git a/src/ml_install/neoforge.ts b/src/ml_install/neoforge.ts index 24f4100..b4b7dd9 100644 --- a/src/ml_install/neoforge.ts +++ b/src/ml_install/neoforge.ts @@ -35,7 +35,7 @@ export default async function install( //下载依赖1 const t = fvdata[c].downloads.artifact; await xfastdownload( - `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname.replace("/releases","")}`, `${path}/libraries/${t.path}`, 16 ); @@ -47,7 +47,7 @@ export default async function install( //下载依赖2 const t = fvdata[c].downloads.artifact; await xfastdownload( - `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname}`, + `https://bmclapi2.bangbang93.com/maven${new URL(t.url).pathname.replace("/releases","")}`, `${path}/libraries/${t.path}`, 16 );