Skip to content

Commit

Permalink
Try to build win statically
Browse files Browse the repository at this point in the history
  • Loading branch information
yifeikong committed Jun 19, 2024
1 parent bd1dfc3 commit 45470de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
shell: msys2 {0}
run: tar cvzf libcurl-impersonate-${{ github.head_ref || github.ref_name }}.${{ matrix.env }}-win32.tar.gz -C ./build/dist .

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libcurl-impersonate.${{ matrix.host }}.tar.gz
path: ./libcurl-impersonate*.tar.gz

- name: Upload release files
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
10 changes: 5 additions & 5 deletions win/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ cd curl
patchfile=../../chrome/patches/curl-impersonate.patch
patch -p1 < $patchfile

# sed -i 's/-shared/-s -static -shared/g' lib/Makefile.mk
# sed -i 's/-static/-s -static/g' src/Makefile.mk
#
# sed -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' lib/Makefile.mk
# sed -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' src/Makefile.mk
sed -i 's/-shared/-s -static -shared/g' lib/Makefile.mk
sed -i 's/-static/-s -static/g' src/Makefile.mk

sed -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' lib/Makefile.mk
sed -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' src/Makefile.mk

sed -i 's/-lidn2/-lidn2 -lunistring -liconv/g' lib/Makefile.mk
sed -i 's/-lidn2/-lidn2 -lunistring -liconv/g' src/Makefile.mk
Expand Down

0 comments on commit 45470de

Please sign in to comment.