Commit a2db215 1 parent 8be65f1 commit a2db215 Copy full SHA for a2db215
File tree 6 files changed +12
-6
lines changed
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ include(GNUInstallDirs)
38
38
39
39
option (USE_SYSTEM_ZSYNC2 OFF "Use existing libzsync2 installed on system (or inside CMAKE_PREFIX_PATH)" )
40
40
if (USE_SYSTEM_ZSYNC2)
41
+ set (USE_SYSTEM_CPR ON )
42
+
43
+ # we use cpr in AppImageUpdate, too
44
+ find_package (cpr REQUIRED)
45
+ add_library (cpr ALIAS cpr::cpr)
46
+
41
47
# note: find_package calls must be made in the same or a parent scope
42
48
find_package (zsync2 REQUIRED)
43
49
endif ()
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUN apt-get update && \
14
14
build-essential libssl-dev autoconf automake libtool \
15
15
wget vim-common desktop-file-utils pkgconf \
16
16
libglib2.0-dev libcairo2-dev librsvg2-dev libfuse-dev git libcurl4-openssl-dev argagg-dev libgcrypt20-dev && \
17
- wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.22.1-ubuntu_xenial-$ARCH.tar.gz | tar xzv -C/ --strip-components=1
17
+ wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.22.1-ubuntu_xenial-$ARCH.tar.gz | tar xzv -C/usr --strip-components=1
18
18
19
19
COPY libgcrypt.pc /usr/lib/i386-linux-gnu/pkgconfig/libgcrypt.pc
20
20
RUN sed -i 's|x86_64|i386|g' /usr/lib/i386-linux-gnu/pkgconfig/libgcrypt.pc
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUN apt-get update && \
14
14
build-essential libssl-dev autoconf automake libtool \
15
15
wget vim-common desktop-file-utils pkgconf \
16
16
libglib2.0-dev libcairo2-dev librsvg2-dev libfuse-dev git libcurl4-openssl-dev argagg-dev libgcrypt20-dev && \
17
- wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.22.1-ubuntu_xenial-$ARCH.tar.gz | tar xzv -C/ --strip-components=1
17
+ wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.22.1-ubuntu_xenial-$ARCH.tar.gz | tar xzv -C/usr --strip-components=1
18
18
19
19
COPY libgcrypt.pc /usr/lib/x86_64-linux-gnu/pkgconfig/libgcrypt.pc
20
20
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ add_definitions("-DAPPIMAGEUPDATE_GIT_COMMIT=\"${GIT_COMMIT}\"")
16
16
add_definitions ("-DBUILD_DATE=\" ${DATE} \" " )
17
17
add_definitions ("-DBUILD_NUMBER=\" ${BUILD_NUMBER} \" " )
18
18
19
- add_subdirectory (util)
20
-
21
19
if (USE_SYSTEM_LIBAPPIMAGE)
22
20
set (LIBAPPIMAGE_LINK_TYPE PUBLIC )
23
21
else ()
32
30
set (ZSYNC2_LINK_TYPE PRIVATE )
33
31
endif ()
34
32
33
+ add_subdirectory (util)
34
+
35
35
# core library
36
36
add_library (libappimageupdate SHARED
37
37
${PROJECT_SOURCE_DIR} /include /appimage/update.h
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ namespace appimage::update::updateinformation {
36
36
url << " tags/" << tag;
37
37
}
38
38
39
- auto response = cpr::Get (url.str ());
39
+ auto response = cpr::Get (cpr::Url{ url.str ()} );
40
40
41
41
// counter that will be evaluated later to give some meaningful feedback why parsing API
42
42
// response might have failed
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ add_library(util STATIC
8
8
target_include_directories (util PUBLIC
9
9
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
10
10
)
11
- target_link_libraries (util PRIVATE libappimage_shared libzsync2_static )
11
+ target_link_libraries (util PRIVATE libappimage_shared ${ZSYNC2_LIBRARY_NAME} cpr )
You can’t perform that action at this time.
0 commit comments