This commit is contained in:
恍兮惚兮 2024-04-26 12:20:10 +08:00
parent 372c9d47b3
commit 1645418029
3 changed files with 3 additions and 8 deletions

View File

@ -44,7 +44,7 @@ jobs:
setup-python: true setup-python: true
- name: Run build script - name: Run build script
run: python build.py 64 run: python build.py 64
- name: Run build script - name: Pack
run: python build.py 0 run: python build.py 0
- name: Release LunaTranslator - name: Release LunaTranslator
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2

View File

@ -14,11 +14,12 @@ def installVCLTL():
subprocess.run(f"7z x {vcltlFileName} -oVC-LTL5") subprocess.run(f"7z x {vcltlFileName} -oVC-LTL5")
os.chdir("VC-LTL5") os.chdir("VC-LTL5")
subprocess.run("cmd /c Install.cmd") subprocess.run("cmd /c Install.cmd")
installVCLTL()
os.chdir(os.path.join(rootDir,'scripts')) os.chdir(os.path.join(rootDir,'scripts'))
if int(sys.argv[1])==32: if int(sys.argv[1])==32:
installVCLTL()
os.system('cmd /c build32.bat') os.system('cmd /c build32.bat')
elif int(sys.argv[1])==64: elif int(sys.argv[1])==64:
installVCLTL()
os.system('cmd /c build64.bat') os.system('cmd /c build64.bat')
else: else:
os.system('cmd /c pack.bat') os.system('cmd /c pack.bat')

View File

@ -1,6 +0,0 @@
cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64
cmake --build ../build/x64 --config Release --target ALL_BUILD -j 14
cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86
cmake --build ../build/x86 --config Release --target ALL_BUILD -j 14