Using MinGW under Windows (#372)

* Update build.yml

* Update deploy_windows64.sh
This commit is contained in:
parhelia512 2025-04-20 09:09:43 -04:00 committed by GitHub
parent f2987f3419
commit e7cf74a63f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -93,9 +93,9 @@ jobs:
uses: actions/checkout@v4.2.2
with:
submodules: "recursive"
- name: Install MSVC compiler
- name: Install mingw
if: matrix.platform == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1.13.0
uses: bwoodsend/setup-winlibs-action@v1.15
- name: Download Artifacts
uses: actions/download-artifact@v4.1.8
@ -105,6 +105,7 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v4.1.1
with:
arch: win64_mingw
version: ${{ matrix.qt_version }}
setup-python: true
modules: qtcharts
@ -128,8 +129,8 @@ jobs:
shell: bash
if: matrix.platform == 'windows-latest'
env:
CC: cl.exe
CXX: cl.exe
CC: gcc.exe
CXX: g++.exe
run: |
mkdir build
cd build

View File

@ -21,7 +21,7 @@ mv $DEPLOYMENT/public_res/* $DEST
#### deploy qt & DLL runtime ####
pushd $DEST
windeployqt nekoray.exe --no-translations --no-system-d3d-compiler --no-compiler-runtime --no-opengl-sw --no-svg --verbose 2
windeployqt nekoray.exe --no-translations --no-system-d3d-compiler --no-opengl-sw --no-svg --verbose 2
popd
rm -rf $DEST/dxcompiler.dll $DEST/dxil.dll