chore: update the file

This commit is contained in:
x-tools-author 2025-05-03 10:59:40 +08:00
parent 167ce13183
commit 3c1274ac55
2 changed files with 32 additions and 0 deletions

View File

@ -72,6 +72,34 @@ jobs:
shell: cmd
run: |
for %%f in (bin\Windows\Release\xTools-zip\*.zip) do gh release upload continuous "%%f"
release-for-windows(win7):
runs-on: windows-2022
needs: update-release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '5.15.2'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}'
modules: 'qtcharts'
- name: Build for Windows
shell: cmd
run: |
git fetch --tags
mkdir build
cd build
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{env.QT_VERSION}}/win64_msvc2022_64' -DCMAKE_BUILD_TYPE=Release -G "Ninja" ../
cmake --build . --target xTools
cmake --build . --target xTools_zip
- name: Upload Release Asset for Windnows
shell: cmd
run: |
for %%f in (bin\Windows\Release\xTools-zip\*.zip) do gh release upload continuous "%%f"
release-for-linux:
runs-on: ubuntu-22.04
needs: update-release

View File

@ -91,6 +91,10 @@ message(STATUS "[xTools]CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "[xTools]CMAKE_CXX_COMPILER_VERSION: ${CMAKE_CXX_COMPILER_VERSION}")
set(X_ASSET_NAME "xTools-${CMAKE_SYSTEM_NAME}-${X_TOOLS_LATEST_GIT_TAG}-${CMAKE_SYSTEM_PROCESSOR}")
if(QT_VERSION VERSION_LESS 6.0.0 AND WIN32)
set(X_ASSET_NAME "${X_ASSET_NAME}(win7)")
endif()
string(TOLOWER ${X_ASSET_NAME} X_ASSET_NAME)
message(STATUS "[xTools]Asset name: ${X_ASSET_NAME}")