From 93a121e94a3df58a848c9aa461fd177fa987c493 Mon Sep 17 00:00:00 2001 From: ipz233_vvv Date: Wed, 15 Jan 2025 14:28:46 +0200 Subject: [PATCH] author changed --- RenameTemplate.csx | 13 ++++++++++--- error.txt | 0 src/main/resources/META-INF/mods.toml | 4 ++-- src/main/resources/META-INF/neoforge.mods.toml | 4 ++-- src/main/resources/fabric.mod.json | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) delete mode 100644 error.txt diff --git a/RenameTemplate.csx b/RenameTemplate.csx index 1d9ef95..74cdba9 100644 --- a/RenameTemplate.csx +++ b/RenameTemplate.csx @@ -8,8 +8,13 @@ public static List FindAllFiles(string directoryPath) var replacements = new[] { -//ORDER MATTERS - new { Old = "JavaJumper", New = "CoolDev" } //change mod init class and other places where mod name is in PascalCase + //ORDER MATTERS + new { Old = "com.example.template", New = "io.github.cooldev.coolmod" }, //change mod package + new { Old = "template", New = "coolmod" }, //change modid + new { Old = "Template", New = "Cool Mod" }, //change mod display name + // ↕ <- Letter L is different case here + new { Old = "TempLate", New = "CoolMod" } //change mod init class and other places where mod name is in PascalCase + new { Old = "AuthorExample", New = "CoolDev" } }; var files = FindAllFiles(Directory.GetCurrentDirectory()); @@ -41,6 +46,8 @@ foreach(var file in files) } Console.WriteLine($"Moving \n\t< {oldFile} \n\t> {newFile}"); File.Delete(oldFile); - Directory.CreateDirectory(Path.GetDirectoryName(newFile)); + try{ + Directory.CreateDirectory(Path.GetDirectoryName(newFile)); + }catch{}; File.WriteAllText(newFile,fileContent); } \ No newline at end of file diff --git a/error.txt b/error.txt deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 7afc335..594fbf8 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -1,13 +1,13 @@ modLoader = "javafml" loaderVersion = "*" license = "LGPLv3" -issueTrackerURL="https://JavaJumper/TempLate/issues" +issueTrackerURL="https://AuthorExample/TempLate/issues" [[mods]] modId = "template" version = "${version}" displayName = "${name}" -authors = "JavaJumper" +authors = "AuthorExample" description = "" logoFile = "assets/template/icon.png" logoBlur = false diff --git a/src/main/resources/META-INF/neoforge.mods.toml b/src/main/resources/META-INF/neoforge.mods.toml index 7afc335..594fbf8 100644 --- a/src/main/resources/META-INF/neoforge.mods.toml +++ b/src/main/resources/META-INF/neoforge.mods.toml @@ -1,13 +1,13 @@ modLoader = "javafml" loaderVersion = "*" license = "LGPLv3" -issueTrackerURL="https://JavaJumper/TempLate/issues" +issueTrackerURL="https://AuthorExample/TempLate/issues" [[mods]] modId = "template" version = "${version}" displayName = "${name}" -authors = "JavaJumper" +authors = "AuthorExample" description = "" logoFile = "assets/template/icon.png" logoBlur = false diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index a796d9e..3d4bfdc 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -5,7 +5,7 @@ "name": "${name}", "description": "", "authors": [ - "JavaJumper" + "AuthorExample" ], "contact": { },