This commit is contained in:
恍兮惚兮 2024-04-26 12:03:24 +08:00
parent f8036a5765
commit 372c9d47b3
2 changed files with 22 additions and 16 deletions

View File

@ -21,6 +21,17 @@ jobs:
with:
sdk-version: 22621
- name: Install Qt32
uses: jurplel/install-qt-action@v3.3.0
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win32_msvc2019
dir: ${{ runner.temp }}
setup-python: true
- name: Run build script 32
run: python build.py 32
- name: Install Qt
uses: jurplel/install-qt-action@v3.3.0
@ -31,19 +42,11 @@ jobs:
arch: win64_msvc2019_64
dir: ${{ runner.temp }}
setup-python: true
- name: Install Qt32
uses: jurplel/install-qt-action@v3.3.0
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win32_msvc2019
dir: ${{ runner.temp }}
setup-python: true
- name: Run build script
run: python build.py
- name: Release
run: python build.py 64
- name: Run build script
run: python build.py 0
- name: Release LunaTranslator
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.create_release }}

View File

@ -1,5 +1,5 @@
import os
import os,sys
import shutil
import subprocess
@ -16,6 +16,9 @@ def installVCLTL():
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')
if int(sys.argv[1])==32:
os.system('cmd /c build32.bat')
elif int(sys.argv[1])==64:
os.system('cmd /c build64.bat')
else:
os.system('cmd /c pack.bat')