This commit is contained in:
blueloveTH 2023-01-23 20:06:46 +08:00
parent f7d185ebbe
commit 63cffd98e4
2 changed files with 7 additions and 7 deletions

View File

@ -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")

@ -1 +1 @@
Subproject commit 2ae92e1f6b2a6d56e3771d5814a93fed6da110e5
Subproject commit cbd49209a4dd7a8a7481019a44f586b6bfd8b4af