mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-23 10:00:10 +08:00
Using MinGW under Windows (#372)
* Update build.yml * Update deploy_windows64.sh
This commit is contained in:
parent
f2987f3419
commit
e7cf74a63f
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -93,9 +93,9 @@ jobs:
|
|||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
- name: Install MSVC compiler
|
- name: Install mingw
|
||||||
if: matrix.platform == 'windows-latest'
|
if: matrix.platform == 'windows-latest'
|
||||||
uses: ilammy/msvc-dev-cmd@v1.13.0
|
uses: bwoodsend/setup-winlibs-action@v1.15
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
uses: actions/download-artifact@v4.1.8
|
uses: actions/download-artifact@v4.1.8
|
||||||
@ -105,6 +105,7 @@ jobs:
|
|||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4.1.1
|
uses: jurplel/install-qt-action@v4.1.1
|
||||||
with:
|
with:
|
||||||
|
arch: win64_mingw
|
||||||
version: ${{ matrix.qt_version }}
|
version: ${{ matrix.qt_version }}
|
||||||
setup-python: true
|
setup-python: true
|
||||||
modules: qtcharts
|
modules: qtcharts
|
||||||
@ -128,8 +129,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.platform == 'windows-latest'
|
if: matrix.platform == 'windows-latest'
|
||||||
env:
|
env:
|
||||||
CC: cl.exe
|
CC: gcc.exe
|
||||||
CXX: cl.exe
|
CXX: g++.exe
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|||||||
@ -21,7 +21,7 @@ mv $DEPLOYMENT/public_res/* $DEST
|
|||||||
|
|
||||||
#### deploy qt & DLL runtime ####
|
#### deploy qt & DLL runtime ####
|
||||||
pushd $DEST
|
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
|
popd
|
||||||
|
|
||||||
rm -rf $DEST/dxcompiler.dll $DEST/dxil.dll
|
rm -rf $DEST/dxcompiler.dll $DEST/dxil.dll
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user