mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
action
This commit is contained in:
parent
e9496b9aaa
commit
4447321964
53
.github/workflows/release.yml
vendored
Normal file
53
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch: # allows manual triggering
|
||||
inputs:
|
||||
create_release:
|
||||
description: 'Create new release'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
env:
|
||||
QT_VERSION: 5.15.2
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Windows 10 SDK
|
||||
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||
with:
|
||||
sdk-version: 22621
|
||||
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3.3.0
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: windows
|
||||
target: desktop
|
||||
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 LunaTranslator
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.event.inputs.create_release }}
|
||||
files: |
|
||||
builds/*.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -14,9 +14,9 @@ endif()
|
||||
|
||||
if(NOT DEFINED WINXP)
|
||||
include(QtUtils.cmake)
|
||||
msvc_registry_search()
|
||||
if(Qt5_DIR)
|
||||
#msvc_registry_search()
|
||||
#if(Qt5_DIR)
|
||||
find_qt5(Core Widgets WebSockets)
|
||||
add_subdirectory(extensions)
|
||||
endif()
|
||||
#endif()
|
||||
endif()
|
21
build.py
Normal file
21
build.py
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
rootDir = os.path.dirname(__file__)
|
||||
|
||||
vcltlFile = "https://github.com/Chuyu-Team/VC-LTL5/releases/download/v5.0.9/VC-LTL-5.0.9-Binary.7z"
|
||||
vcltlFileName = "VC-LTL-5.0.9-Binary.7z"
|
||||
def installVCLTL():
|
||||
os.makedirs(rootDir + "\\temp",exist_ok=True)
|
||||
os.chdir(rootDir + "\\temp")
|
||||
subprocess.run(f"curl -LO {vcltlFile}")
|
||||
subprocess.run(f"7z x {vcltlFileName} -oVC-LTL5")
|
||||
os.chdir("VC-LTL5")
|
||||
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')
|
Loading…
x
Reference in New Issue
Block a user