# HG changeset patch # User Paper # Date 1718883541 14400 # Node ID d085c05247bdd6ed49d2d9f0145f117183f67422 # Parent 676b9967d8c6ce1b95e89587a8ce8f2fd532999a build: fix windows build diff -r 676b9967d8c6 -r d085c05247bd .builds/windows.yml --- a/.builds/windows.yml Thu Jun 20 06:00:28 2024 -0400 +++ b/.builds/windows.yml Thu Jun 20 07:39:01 2024 -0400 @@ -30,6 +30,7 @@ cd build64 sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status' python3 -m pip install --user --break-system-packages mingw-ldd + sudo ln -nfs "$HOME/quasi-msys2-win64/root/mingw64" /mingw64 bash -c 'export MSYSTEM=mingw64 && source ../../quasi-msys2-win64/env/all.src && cmake .. -G "Unix Makefiles" && make && env DIR=minori64 LDD="$HOME/.local/bin/mingw-ldd" sh ../scripts/win32/deploy_build.sh' - get-wine32: | sudo dpkg --add-architecture i386 @@ -46,6 +47,7 @@ mkdir build32 cd build32 sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status' + sudo ln -nfs "$HOME/quasi-msys2-win64/root/mingw32" /mingw32 bash -c 'export MSYSTEM=mingw32 && source ../../quasi-msys2-win32/env/all.src && cmake .. -G "Unix Makefiles" && make && env DIR=minori32 LDD="$HOME/.local/bin/mingw-ldd" sh ../scripts/win32/deploy_build.sh' artifacts: - minori/build64/minori64.zip diff -r 676b9967d8c6 -r d085c05247bd CMakeLists.txt --- a/CMakeLists.txt Thu Jun 20 06:00:28 2024 -0400 +++ b/CMakeLists.txt Thu Jun 20 07:39:01 2024 -0400 @@ -31,7 +31,9 @@ find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools) -find_package(CURL REQUIRED) +# find_package(CURL) fails sometimes +find_package(PkgConfig REQUIRED) +pkg_check_modules(CURL REQUIRED curl) set(LIBRARIES ${CURL_LIBRARIES}