blueloveTH %!s(int64=3) %!d(string=hai) anos
pai
achega
63cffd98e4
Modificáronse 2 ficheiros con 7 adicións e 7 borrados
  1. 6 6
      amalgamate.py
  2. 1 1
      plugins/godot/godot-cpp

+ 6 - 6
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")

+ 1 - 1
plugins/godot/godot-cpp

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