diff options
Diffstat (limited to '.ci/scripts/windows/docker.sh')
| -rwxr-xr-x[-rw-r--r--] | .ci/scripts/windows/docker.sh | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/.ci/scripts/windows/docker.sh b/.ci/scripts/windows/docker.sh index beb554b65..d53281741 100644..100755 --- a/.ci/scripts/windows/docker.sh +++ b/.ci/scripts/windows/docker.sh | |||
| @@ -4,22 +4,10 @@ cd /yuzu | |||
| 4 | 4 | ||
| 5 | ccache -s | 5 | ccache -s |
| 6 | 6 | ||
| 7 | # Dirty hack to trick unicorn makefile into believing we are in a MINGW system | ||
| 8 | mv /bin/uname /bin/uname1 && echo -e '#!/bin/sh\necho MINGW64' >> /bin/uname | ||
| 9 | chmod +x /bin/uname | ||
| 10 | |||
| 11 | # Dirty hack to trick unicorn makefile into believing we have cmd | ||
| 12 | echo '' >> /bin/cmd | ||
| 13 | chmod +x /bin/cmd | ||
| 14 | |||
| 15 | mkdir build || true && cd build | 7 | mkdir build || true && cd build |
| 16 | cmake .. -G Ninja -DDISPLAY_VERSION=$1 -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DYUZU_USE_BUNDLED_UNICORN=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_VULKAN=No | 8 | cmake .. -G Ninja -DDISPLAY_VERSION=$1 -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DYUZU_USE_BUNDLED_UNICORN=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DCMAKE_BUILD_TYPE=Release |
| 17 | ninja | 9 | ninja |
| 18 | 10 | ||
| 19 | # Clean up the dirty hacks | ||
| 20 | rm /bin/uname && mv /bin/uname1 /bin/uname | ||
| 21 | rm /bin/cmd | ||
| 22 | |||
| 23 | ccache -s | 11 | ccache -s |
| 24 | 12 | ||
| 25 | echo "Tests skipped" | 13 | echo "Tests skipped" |
| @@ -29,7 +17,13 @@ echo 'Prepare binaries...' | |||
| 29 | cd .. | 17 | cd .. |
| 30 | mkdir package | 18 | mkdir package |
| 31 | 19 | ||
| 32 | QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' | 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/' | ||
| 22 | else | ||
| 23 | #fallback to qt | ||
| 24 | QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt/plugins/platforms/' | ||
| 25 | fi | ||
| 26 | |||
| 33 | find build/ -name "yuzu*.exe" -exec cp {} 'package' \; | 27 | find build/ -name "yuzu*.exe" -exec cp {} 'package' \; |
| 34 | 28 | ||
| 35 | # copy Qt plugins | 29 | # copy Qt plugins |