LunaTranslator/cpp/scripts/copytarget.py

18 lines
1.0 KiB
Python
Raw Normal View History

2024-11-06 07:27:43 +08:00
import shutil,sys,os
2024-11-06 06:46:35 +08:00
x86=int(sys.argv[1])
if x86:
2024-11-06 07:27:43 +08:00
os.makedirs('../../py/files/plugins/DLL32',exist_ok=True)
2024-11-06 06:46:35 +08:00
shutil.copy('../builds/_x86/shareddllproxy32.exe','../../py/files/plugins')
shutil.copy('../builds/_x86/winrtutils32.dll','../../py/files/plugins/DLL32')
shutil.copy('../builds/_x86/winsharedutils32.dll','../../py/files/plugins/DLL32')
shutil.copy('../builds/_x86/wcocr.dll','../../py/files/plugins/DLL32')
shutil.copy('../builds/_x86/LunaOCR32.dll','../../py/files/plugins/DLL32')
else:
2024-11-06 07:27:43 +08:00
os.makedirs('../../py/files/plugins/DLL64',exist_ok=True)
2024-11-06 06:46:35 +08:00
shutil.copy('../builds/_x64/shareddllproxy64.exe','../../py/files/plugins')
shutil.copy('../builds/_x64/hookmagpie.dll','../../py/files/plugins')
shutil.copy('../builds/_x64/winrtutils64.dll','../../py/files/plugins/DLL64')
shutil.copy('../builds/_x64/winsharedutils64.dll','../../py/files/plugins/DLL64')
shutil.copy('../builds/_x64/wcocr.dll','../../py/files/plugins/DLL64')
shutil.copy('../builds/_x64/LunaOCR64.dll','../../py/files/plugins/DLL64')