diff options
| author | 2021-06-19 05:24:56 -0400 | |
|---|---|---|
| committer | 2021-06-19 05:24:56 -0400 | |
| commit | ad8aab915b3dd0de1e809590737974f75ba25ba7 (patch) | |
| tree | 89883083ff409fd6fa60183f01724a85399692b1 /.ci | |
| parent | Merge pull request #6494 from lat9nq/mingw-fix-fastmem (diff) | |
| download | yuzu-ad8aab915b3dd0de1e809590737974f75ba25ba7.tar.gz yuzu-ad8aab915b3dd0de1e809590737974f75ba25ba7.tar.xz yuzu-ad8aab915b3dd0de1e809590737974f75ba25ba7.zip | |
ci: windows: Copy the styles directory when packaging
Qt can make use of qwindowsvistastyle.dll if present, and our MinGW
container has the library, but it was not being copied during the
packaging process. Thus, yuzu looked like a Windows 98 application when
using the PR-verify artifacts.
This copies over the DLL during packaging, for that sweet-sweet Windows
Vista style.
In addition, set the Qt plugins path instead of the plugins/platforms
path. This way we can use the directory directly, rather than appending
a `..` everytime we need something just outside of it.
Diffstat (limited to '.ci')
| -rwxr-xr-x | .ci/scripts/windows/docker.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.ci/scripts/windows/docker.sh b/.ci/scripts/windows/docker.sh index feba3fd6e..155d8a5c8 100755 --- a/.ci/scripts/windows/docker.sh +++ b/.ci/scripts/windows/docker.sh | |||
| @@ -18,19 +18,20 @@ cd .. | |||
| 18 | mkdir package | 18 | mkdir package |
| 19 | 19 | ||
| 20 | if [ -d "/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/" ]; then | 20 | if [ -d "/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/" ]; then |
| 21 | QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' | 21 | QT_PLUGINS_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins' |
| 22 | else | 22 | else |
| 23 | #fallback to qt | 23 | #fallback to qt |
| 24 | QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt/plugins/platforms/' | 24 | QT_PLUGINS_PATH='/usr/x86_64-w64-mingw32/lib/qt/plugins' |
| 25 | fi | 25 | fi |
| 26 | 26 | ||
| 27 | find build/ -name "yuzu*.exe" -exec cp {} 'package' \; | 27 | find build/ -name "yuzu*.exe" -exec cp {} 'package' \; |
| 28 | 28 | ||
| 29 | # copy Qt plugins | 29 | # copy Qt plugins |
| 30 | mkdir package/platforms | 30 | mkdir package/platforms |
| 31 | cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ | 31 | cp -v "${QT_PLUGINS_PATH}/platforms/qwindows.dll" package/platforms/ |
| 32 | cp -rv "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ | 32 | cp -rv "${QT_PLUGINS_PATH}/mediaservice/" package/ |
| 33 | cp -rv "${QT_PLATFORM_DLL_PATH}/../imageformats/" package/ | 33 | cp -rv "${QT_PLUGINS_PATH}/imageformats/" package/ |
| 34 | cp -rv "${QT_PLUGINS_PATH}/styles/" package/ | ||
| 34 | rm -f package/mediaservice/*d.dll | 35 | rm -f package/mediaservice/*d.dll |
| 35 | 36 | ||
| 36 | for i in package/*.exe; do | 37 | for i in package/*.exe; do |