mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-10-22 23:18:16 +08:00
25 lines
734 B
Python
25 lines
734 B
Python
|
|
import os,sys
|
|
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")
|
|
os.chdir(os.path.join(rootDir,'scripts'))
|
|
if int(sys.argv[1])==32:
|
|
installVCLTL()
|
|
os.system('cmd /c build32.bat')
|
|
elif int(sys.argv[1])==64:
|
|
installVCLTL()
|
|
os.system('cmd /c build64.bat')
|
|
else:
|
|
os.system('cmd /c pack.bat') |