Version: 3.2 Update

This commit is contained in:
gh0stkey
2024-05-24 15:31:07 +08:00
parent 8a47f61caa
commit 99ed2cb2fd

View File

@@ -28,7 +28,7 @@ public class ProjectProcessor {
yaml.dump(httpMap, new OutputStreamWriter(httpYamlStream, StandardCharsets.UTF_8)); yaml.dump(httpMap, new OutputStreamWriter(httpYamlStream, StandardCharsets.UTF_8));
try (ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(haeFilePath))) { try (ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(haeFilePath))) {
zipOut.putNextEntry(new ZipEntry("info.txt")); zipOut.putNextEntry(new ZipEntry("info"));
zipOut.write(host.getBytes(StandardCharsets.UTF_8)); zipOut.write(host.getBytes(StandardCharsets.UTF_8));
zipOut.closeEntry(); zipOut.closeEntry();
@@ -55,7 +55,7 @@ public class ProjectProcessor {
ZipEntry entry; ZipEntry entry;
while ((entry = zipIn.getNextEntry()) != null) { while ((entry = zipIn.getNextEntry()) != null) {
switch (entry.getName()) { switch (entry.getName()) {
case "info.txt": case "info":
haeFileContent.setHost(new String(zipIn.readAllBytes(), StandardCharsets.UTF_8)); haeFileContent.setHost(new String(zipIn.readAllBytes(), StandardCharsets.UTF_8));
break; break;
case "data.yml": case "data.yml":