From c4565ece0c7838d1ea7290d33daebe7b40ef65e8 Mon Sep 17 00:00:00 2001 From: arghya339 Date: Sun, 1 Dec 2024 23:38:02 +0530 Subject: [PATCH] Revert "add JsonGenerator.kt & ReadmeGenerator.kt output path" This reverts commit c48fa31cdaa519753cb90b6fd6d6c024ddb8e701. --- src/main/kotlin/app/revanced/meta/JsonGenerator.kt | 2 +- src/main/kotlin/app/revanced/meta/ReadmeGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/meta/JsonGenerator.kt b/src/main/kotlin/app/revanced/meta/JsonGenerator.kt index 88e01ac76e..abf7834b8f 100644 --- a/src/main/kotlin/app/revanced/meta/JsonGenerator.kt +++ b/src/main/kotlin/app/revanced/meta/JsonGenerator.kt @@ -40,7 +40,7 @@ internal class JsonGenerator : PatchesFileGenerator { ) } - val json = File("build/libs/","patches.json") + val json = File("patches.json") json.writeText(GsonBuilder().serializeNulls().create().toJson(patches)) } diff --git a/src/main/kotlin/app/revanced/meta/ReadmeGenerator.kt b/src/main/kotlin/app/revanced/meta/ReadmeGenerator.kt index c202979c05..21c6922068 100644 --- a/src/main/kotlin/app/revanced/meta/ReadmeGenerator.kt +++ b/src/main/kotlin/app/revanced/meta/ReadmeGenerator.kt @@ -61,7 +61,7 @@ internal class ReadmeGenerator : PatchesFileGenerator { } } - File("build/libs/","README.md").run { + File("README.md").run { writeText( readText().replace(Regex("## \uD83E\uDDE9 Patches List.*?", RegexOption.DOT_MATCHES_ALL), output.toString()) )