mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 13:14:13 +08:00
fix
This commit is contained in:
parent
f8036a5765
commit
372c9d47b3
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
11
build.py
11
build.py
@ -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')
|
Loading…
x
Reference in New Issue
Block a user