Skip to content

Commit 6cf56bd

Browse files
committed
Use CMake for building curl in CI_build
Close #104
1 parent 000e574 commit 6cf56bd

File tree

3 files changed

+30
-53
lines changed

3 files changed

+30
-53
lines changed

.github/workflows/CI_build.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
name: CI_build
2-
32
on: [push, pull_request]
4-
53
jobs:
64
build:
7-
85
runs-on: windows-latest
96
strategy:
107
fail-fast: false
118
matrix:
129
build_platform: [x64, x86, ARM64]
13-
1410
steps:
1511
- name: Checkout repo
1612
uses: actions/checkout@v4
1713

1814
- name: Add msbuild to PATH
1915
uses: microsoft/setup-msbuild@v2
2016

21-
- name: Add nmake
22-
if: matrix.build_platform == 'ARM64'
23-
uses: ilammy/msvc-dev-cmd@v1
24-
with:
25-
arch: amd64_arm64
17+
- name: Configure curl (${{ matrix.build_platform }})
18+
run: |
19+
$arch = "${{ matrix.build_platform }}" -eq "x86" ? "Win32" : "${{ matrix.build_platform }}"
20+
cmake curl -B curl/build/${{ matrix.build_platform }} -A $arch `
21+
-DBUILD_SHARED_LIBS=OFF `
22+
-DCURL_STATIC_CRT=ON `
23+
-DBUILD_CURL_EXE=OFF `
24+
-DCURL_USE_SCHANNEL=ON `
25+
-DCURL_USE_OPENSSL=OFF `
26+
-DBUILD_TESTING=OFF `
27+
-DUSE_LIBPSL=OFF `
28+
-DCURL_USE_LIBPSL=OFF `
29+
-DUSE_NGHTTP2=OFF `
30+
-DUSE_LIBIDN2=OFF
2631
27-
- name: Add nmake
28-
if: matrix.build_platform == 'x64' || matrix.build_platform == 'x86'
29-
uses: ilammy/msvc-dev-cmd@v1
30-
with:
31-
arch: ${{ matrix.build_platform }}
32+
- name: Build curl Release (${{ matrix.build_platform }})
33+
run: cmake --build curl/build/${{ matrix.build_platform }} --config Release
3234

33-
- name: nmake libcurl
34-
working-directory: curl/winbuild
35-
run: |
36-
set WINBUILD_ACKNOWLEDGE_DEPRECATED=yes
37-
nmake /f Makefile.vc mode=static vc=15 RTLIBCFG=static WINBUILD_ACKNOWLEDGE_DEPRECATED=yes MACHINE="${{ matrix.build_platform }}"
38-
nmake /f Makefile.vc mode=static vc=15 RTLIBCFG=static WINBUILD_ACKNOWLEDGE_DEPRECATED=yes DEBUG=yes MACHINE="${{ matrix.build_platform }}"
35+
- name: Build curl Debug (${{ matrix.build_platform }})
36+
run: cmake --build curl/build/${{ matrix.build_platform }} --config Debug
3937

40-
- name: MSBuild of GUP exe
38+
- name: Build GUP Release (${{ matrix.build_platform }})
4139
working-directory: vcproj
42-
run: |
43-
msbuild GUP.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}"
44-
msbuild GUP.sln /m /p:configuration="Debug" /p:platform="${{ matrix.build_platform }}"
40+
run: msbuild GUP.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}"
41+
42+
- name: Build GUP Debug (${{ matrix.build_platform }})
43+
working-directory: vcproj
44+
run: msbuild GUP.sln /m /p:configuration="Debug" /p:platform="${{ matrix.build_platform }}"
4545

4646
- name: Archive artifacts for x64
4747
if: matrix.build_platform == 'x64'

src/change.log

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
1-
WinGup (for Notepad++) v5.4 new featurs:
2-
3-
1. Security enhancement: Add option to verify integrity & authenticity of server-returned XML (XMLDsig).
4-
2. Security enhancement: Remove 2 curl options CURLSSLOPT_ALLOW_BEAST & CURLSSLOPT_NO_REVOKE to make more secured.
5-
3. Security enhancement: Integrate libcurl statically into GUP.exe to remove dependency on libcurl.dll.
6-
4. Make security error log more explicite.
7-
5. Limit -clean & -unzip of Notepad++ plugin management usage.
8-
9-
10-
WinGup (for Notepad++) v5.3.9 new featurs:
11-
12-
1. Security enhancement: Log security errors automatically in "%LOCALUSERDATA%\WinGUp\log\securityError.log".
13-
14-
15-
WinGup (for Notepad++) v5.3.8 new featurs:
16-
17-
1. Security enhancement: Add checking code signing certificate ability.
18-
19-
20-
WinGup (for Notepad++) v5.3.7 new featurs:
21-
22-
1. Security enhancement: Add a comment line argument (option) to verify the download URL.
23-
24-
25-
WinGup (for Notepad++) v5.3.6 new featurs:
26-
27-
1. Security enhancement: Make infoUrl overridable via command-line argument.
1+
WinGup (for Notepad++) v5.4.1 new featurs:
282

3+
1. Fix regression of launching notepad++.exe with admin privilege.
4+
2. Fix WinGUp downloading fail regression behind corporate MITM proxies.
5+
3. Update cURL to v8.19.0 to fix its security issue (CVE-2025-14819)

src/resource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
#pragma once
2121

22-
#define VERSION_VALUE L"5.4\0"
23-
#define VERSION_DIGITALVALUE 5, 4, 0, 0
22+
#define VERSION_VALUE L"5.41\0"
23+
#define VERSION_DIGITALVALUE 5, 4, 1, 0
2424

2525
#define IDD_PROGRESS_DLG 1001
2626
#define IDD_PROXY_DLG 1002

0 commit comments

Comments
 (0)