From c37c4f1f754633fecb6dfa9faa9b694d71f7e8f9 Mon Sep 17 00:00:00 2001 From: luojian Date: Fri, 11 Jul 2025 14:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B7=E6=B7=86=E4=BB=A3=E7=A0=81=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/project_update.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/project_update.py b/scripts/project_update.py index 07299bc..8210828 100644 --- a/scripts/project_update.py +++ b/scripts/project_update.py @@ -97,6 +97,7 @@ def update_gradle_property(content, key, new_value): GAME_ACTIVITY_PATH = f"LauncherCode/src/com/launchercode/GameActivity.kt".replace("/", os.sep) ANDROID_MANIFEST_PATH = f"lawnchair/AndroidManifest.xml".replace("/", os.sep) STRING_PATH = f"LauncherCode/res/values/strings.xml".replace("/", os.sep) +LAUNCER_STRING_PATH = f"LauncherCode/src/com/launchercode/LauncherStringsValue.kt".replace("/", os.sep) class ProjectUpdate(Task): @@ -344,6 +345,13 @@ plugins { privacy.replace("privacy.html", "TermsOfUse.html")) text = text.replace("harmounitun@outlook.com", tkg_custom) open(os.path.join(self.context.temp_project_path, STRING_PATH), "w", encoding="utf-8").write(text) + + text = open(os.path.join(self.context.temp_project_path, LAUNCER_STRING_PATH), "r", encoding="utf-8").read() + text = text.replace("https://harmonitun.com/privacy.html", privacy) + text = text.replace("https://harmonitun.com/TermsOfUse.html", + privacy.replace("privacy.html", "TermsOfUse.html")) + text = text.replace("harmounitun@outlook.com", tkg_custom) + open(os.path.join(self.context.temp_project_path, LAUNCER_STRING_PATH), "w", encoding="utf-8").write(text) pass def execute(self):