mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 13:14:13 +08:00
22 lines
638 B
Python
22 lines
638 B
Python
|
|
import os
|
|
import shutil
|
|
import subprocess
|
|
|
|
rootDir = os.path.dirname(__file__)
|
|
|
|
vcltlFile = "https://github.com/Chuyu-Team/VC-LTL5/releases/download/v5.0.9/VC-LTL-5.0.9-Binary.7z"
|
|
vcltlFileName = "VC-LTL-5.0.9-Binary.7z"
|
|
def installVCLTL():
|
|
os.makedirs(rootDir + "\\temp",exist_ok=True)
|
|
os.chdir(rootDir + "\\temp")
|
|
subprocess.run(f"curl -LO {vcltlFile}")
|
|
subprocess.run(f"7z x {vcltlFileName} -oVC-LTL5")
|
|
os.chdir("VC-LTL5")
|
|
subprocess.run("cmd /c Install.cmd")
|
|
installVCLTL()
|
|
os.chdir(os.path.join(rootDir,'scripts'))
|
|
os.system('cmd /c build32.bat')
|
|
os.system('cmd /c build64.bat')
|
|
os.system('cmd /c pack.bat')
|