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