Skip to content

Commit

Permalink
Fix sysroot prefix for mingw32
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Jun 25, 2024
1 parent b33d39d commit 2afed20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Copy and patch
shell: msys2 {0}
run: ./win/build.sh
run: ./win/build.sh ${{ matrix.sys }}

# - name: Setup tmate session for debugging
# uses: mxschmitt/action-tmate@v3
Expand Down
24 changes: 13 additions & 11 deletions win/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,22 @@ mingw32-make -j CFG=-ssl-zlib-nghttp2-idn2-brotli-zstd-ipv6

cd ..

SYS=$1

mkdir -p ../dist
ls build
mv build/lib/libcurl* ../dist/
cp /mingw64/bin/libidn2-0.dll ../dist/
cp /mingw64/bin/libnghttp2-14.dll ../dist/
cp /mingw64/bin/libbrotlidec.dll ../dist/
cp /mingw64/bin/libbrotlicommon.dll ../dist/
cp /mingw64/bin/libpsl-5.dll ../dist/
cp /mingw64/bin/libssh2-1.dll ../dist/
cp /mingw64/bin/libzstd.dll ../dist/
cp /mingw64/bin/zlib1.dll ../dist/
cp /mingw64/bin/libiconv-2.dll ../dist/
cp /mingw64/bin/libintl-8.dll ../dist/
cp /mingw64/bin/libunistring-5.dll ../dist
cp /$SYS/bin/libidn2-0.dll ../dist/
cp /$SYS/bin/libnghttp2-14.dll ../dist/
cp /$SYS/bin/libbrotlidec.dll ../dist/
cp /$SYS/bin/libbrotlicommon.dll ../dist/
cp /$SYS/bin/libpsl-5.dll ../dist/
cp /$SYS/bin/libssh2-1.dll ../dist/
cp /$SYS/bin/libzstd.dll ../dist/
cp /$SYS/bin/zlib1.dll ../dist/
cp /$SYS/bin/libiconv-2.dll ../dist/
cp /$SYS/bin/libintl-8.dll ../dist/
cp /$SYS/bin/libunistring-5.dll ../dist
mv build/src/*.exe ../dist/

cd ..
Expand Down

0 comments on commit 2afed20

Please sign in to comment.