Skip to content

Commit e8c1538

Browse files
committed
Copy missing libraries when deploying for Windows
1 parent 0906b5a commit e8c1538

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ jobs:
156156
cd win_release
157157
windeployqt ${{ env.executable_name }}.exe --qmldir ..\win_build\src || exit 5
158158
shell: cmd
159+
- name: Copy libraries
160+
run: |
161+
cp ${QT_ROOT_DIR}/bin/libgcc_s_seh-1.dll win_release/
162+
cp ${QT_ROOT_DIR}/bin/libstdc++-6.dll win_release/
163+
cp ${QT_ROOT_DIR}/bin/libwinpthread-1.dll win_release/
164+
shell: bash
159165
# Update Windows repository
160166
- if: env.create_windows_installer == 1 && env.is_prerelease == 1
161167
name: Do not update Windows repo if this is a pre-release

.github/workflows/windows-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
cd win_release
6868
windeployqt ${{ env.executable_name }}.exe --qmldir ..\win_build\src || exit 5
6969
shell: cmd
70+
- name: Copy libraries
71+
run: |
72+
cp ${QT_ROOT_DIR}/bin/libgcc_s_seh-1.dll win_release/
73+
cp ${QT_ROOT_DIR}/bin/libstdc++-6.dll win_release/
74+
cp ${QT_ROOT_DIR}/bin/libwinpthread-1.dll win_release/
75+
shell: bash
7076
## Upload
7177
- name: Upload artifacts
7278
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)