From 63cffd98e405e067c154cbd88613dd8f03ef3811 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 23 Jan 2023 20:06:46 +0800 Subject: [PATCH] up --- amalgamate.py | 12 ++++++------ plugins/godot/godot-cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/amalgamate.py b/amalgamate.py index 486bd5ee..e9f058fe 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -59,12 +59,12 @@ os.system("cp amalgamated/pocketpy.h plugins/flutter/src/pocketpy.h") unity_ios_header = 'plugins/unity/My project/Assets/com.bl.pocketpy/Plugins/iOS/pocketpy.h' os.system(f'cp amalgamated/pocketpy.h "{unity_ios_header}"') -# replace Distributed Under The LGPLv3 License -with open(unity_ios_header, "rt", encoding='utf-8') as f: - text = f.read() - text = text.replace("Distributed Under The LGPLv3 License", "Distributed Under The PocketPy Unity Exclusive License") -with open(unity_ios_header, "wt", encoding='utf-8') as f: - f.write(text) +if os.path.exists("plugins/unity"): + with open(unity_ios_header, "rt", encoding='utf-8') as f: + text = f.read() + text = text.replace("Distributed Under The LGPLv3 License", "Distributed Under The PocketPy Unity Exclusive License") + with open(unity_ios_header, "wt", encoding='utf-8') as f: + f.write(text) if os.path.exists("plugins/godot/godot-cpp/pocketpy"): os.system("cp amalgamated/pocketpy.h plugins/godot/godot-cpp/pocketpy/src/pocketpy.h") \ No newline at end of file diff --git a/plugins/godot/godot-cpp b/plugins/godot/godot-cpp index 2ae92e1f..cbd49209 160000 --- a/plugins/godot/godot-cpp +++ b/plugins/godot/godot-cpp @@ -1 +1 @@ -Subproject commit 2ae92e1f6b2a6d56e3771d5814a93fed6da110e5 +Subproject commit cbd49209a4dd7a8a7481019a44f586b6bfd8b4af