From b38623c42657bf5cca6a140e62b0dcce179331a4 Mon Sep 17 00:00:00 2001 From: luojian Date: Wed, 9 Jul 2025 14:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9unity=E7=9A=84=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/project_update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/project_update.py b/scripts/project_update.py index 8e548d1..e5a6738 100644 --- a/scripts/project_update.py +++ b/scripts/project_update.py @@ -236,6 +236,12 @@ storePassword=123456 text = open(os.path.join(dst, "build.gradle"), "r", encoding="utf-8").read() text = text.replace("implementation", "api") + text = text.replace("unityStreamingAssets.tokenize(', ')", '[".unity3d", ".bundle", ".version", ".bytes", ".hash"]') + text = text.replace("apply plugin: 'com.android.library'", """ +plugins { + id 'com.android.library' +} + """) open(os.path.join(dst, "build.gradle"), "w", encoding="utf-8").write(text) # 引用Unity项目