-
Notifications
You must be signed in to change notification settings - Fork 2
/
tounreal.py
28 lines (22 loc) · 837 Bytes
/
tounreal.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import shutil
import amalgam
destination = "G:/Unreal/Projects/ThingsAndStuff/Plugins/Arcade"
def copyDirectory(src, dest):
try:
shutil.copytree(src, dest)
except shutil.Error as e:
print('Directory not copied. Error: %s' % e)
return False
except OSError as e:
print('Directory not copied. Error: %s' % e)
return False
return True
if __name__ == "__main__":
print("Amalgamating Headers...")
amalgam.amalgamate()
print("Copying build files to unreal...")
shutil.copyfile("bin/Release/runtime.dll", destination + "/Binaries/Win64/runtime.dll")
shutil.copyfile("lib/Release/runtime.lib", destination + "/ThirdParty/Arcade/Libraries/ArcadeRuntime.x64.lib")
shutil.copyfile("src/runtime/metacade_amal.h", destination + "/ThirdParty/Arcade/Includes/metacade_amal.h")
print("Done")
exit(0)