mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 21:24:12 +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:
|
with:
|
||||||
sdk-version: 22621
|
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
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v3.3.0
|
uses: jurplel/install-qt-action@v3.3.0
|
||||||
@ -31,19 +42,11 @@ jobs:
|
|||||||
arch: win64_msvc2019_64
|
arch: win64_msvc2019_64
|
||||||
dir: ${{ runner.temp }}
|
dir: ${{ runner.temp }}
|
||||||
setup-python: true
|
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
|
- name: Run build script
|
||||||
run: python build.py
|
run: python build.py 64
|
||||||
- name: Release
|
- name: Run build script
|
||||||
|
run: python build.py 0
|
||||||
|
- name: Release LunaTranslator
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.create_release }}
|
tag_name: ${{ github.event.inputs.create_release }}
|
||||||
|
5
build.py
5
build.py
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
import os
|
import os,sys
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
@ -16,6 +16,9 @@ def installVCLTL():
|
|||||||
subprocess.run("cmd /c Install.cmd")
|
subprocess.run("cmd /c Install.cmd")
|
||||||
installVCLTL()
|
installVCLTL()
|
||||||
os.chdir(os.path.join(rootDir,'scripts'))
|
os.chdir(os.path.join(rootDir,'scripts'))
|
||||||
|
if int(sys.argv[1])==32:
|
||||||
os.system('cmd /c build32.bat')
|
os.system('cmd /c build32.bat')
|
||||||
|
elif int(sys.argv[1])==64:
|
||||||
os.system('cmd /c build64.bat')
|
os.system('cmd /c build64.bat')
|
||||||
|
else:
|
||||||
os.system('cmd /c pack.bat')
|
os.system('cmd /c pack.bat')
|
Loading…
x
Reference in New Issue
Block a user