Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Apr 26, 2024
1 parent f8036a5 commit 372c9d4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,32 @@ jobs:
with:
sdk-version: 22621


- name: Install Qt
- name: Install Qt32
uses: jurplel/[email protected]
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win64_msvc2019_64
arch: win32_msvc2019
dir: ${{ runner.temp }}
setup-python: true
- name: Install Qt32
- name: Run build script 32
run: python build.py 32

- name: Install Qt
uses: jurplel/[email protected]
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win32_msvc2019
arch: win64_msvc2019_64
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 }}
Expand Down
11 changes: 7 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import os
import os,sys
import shutil
import subprocess

Expand All @@ -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')

0 comments on commit 372c9d4

Please sign in to comment.