From c8fde0d28642e6bf5b161ea6d534b3b5f69c424f Mon Sep 17 00:00:00 2001 From: luojian Date: Wed, 9 Jul 2025 14:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/project_update.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/project_update.py b/scripts/project_update.py index 0aa2602..7579352 100644 --- a/scripts/project_update.py +++ b/scripts/project_update.py @@ -229,6 +229,10 @@ storePassword=123456 FileUtils.delete(dst, True) FileUtils.decompress(res_path, temp_dst) + build_path = os.path.join(temp_dst, "build") + if os.path.exists(build_path): + FileUtils.delete(build_path, True) + if os.listdir(temp_dst).index("unityLibrary") >= 0: FileUtils.copy(os.path.join(temp_dst, "unityLibrary"), dst) else: @@ -239,7 +243,8 @@ storePassword=123456 text = text.replace("compileSdkVersion", """ namespace "com.unity3d.player" compileSdkVersion""") - text = text.replace("unityStreamingAssets.tokenize(', ')", '[".unity3d", ".bundle", ".version", ".bytes", ".hash"]') + text = text.replace("unityStreamingAssets.tokenize(', ')", + '[".unity3d", ".bundle", ".version", ".bytes", ".hash"]') text = text.replace("apply plugin: 'com.android.library'", """ plugins { id 'com.android.library'