Skip to content

Commit

Permalink
修复windows上curl TLCP无法使用的问题
Browse files Browse the repository at this point in the history
windows上使用nmake构建,和Linux构建脚本不一样,增加NTLS相关编译选项;
同步curl最新代码后重新适配。
  • Loading branch information
dongbeiouba committed Jan 2, 2025
1 parent b032cbe commit d9cb20e
Show file tree
Hide file tree
Showing 2 changed files with 1,759 additions and 777 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
wget "https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/${VERSION}.tar.gz"
tar zxf "${VERSION}.tar.gz"
pushd "Tongsuo-${VERSION}"
./config --prefix=${GITHUB_WORKSPACE}/tongsuo no-shared enable-ntls --release
./config --prefix=${GITHUB_WORKSPACE}/tongsuo no-shared enable-ntls enable-ssl-trace --release
make -s -j4
make install_sw
popd
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
pushd "Tongsuo-%TONGSUO_VERSION%"
mkdir _build
pushd _build
perl ..\Configure no-makedepend no-shared VC-WIN64A --prefix=%TONGSUO_HOME%
perl ..\Configure no-makedepend no-shared enable-ntls enable-ssl-trace VC-WIN64A --prefix=%TONGSUO_HOME% --release
nmake /S
nmake install_sw
popd
Expand All @@ -119,7 +119,9 @@ jobs:
git apply tongsuo.diff
./buildconf.bat
cd winbuild
nmake /f Makefile.vc mode=static WITH_SSL=static SSL_PATH=${env:TONGSUO_HOME} RTLIBCFG=static
nmake /f Makefile.vc mode=static WITH_SSL=static SSL_PATH=${env:TONGSUO_HOME} RTLIBCFG=static ENABLE_NTLS=yes
cd ..
builds\libcurl-vc-x64-release-static-ssl-static-ipv6-sspi\bin\curl.exe --help tls | findstr tlcp
- name: upload artifact
uses: actions/upload-release-asset@v1
env:
Expand Down
Loading

0 comments on commit d9cb20e

Please sign in to comment.