From 338aa646b9a748d184462d349ebbd98123f7b29f Mon Sep 17 00:00:00 2001 From: Percy Hong Date: Tue, 17 Nov 2020 19:32:53 +0800 Subject: [PATCH] feat(ci): try install deb in ubuntu ci --- .github/workflows/ubuntu.yml | 4 ++++ CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 526c0bf..d722ced 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -18,6 +18,10 @@ jobs: cmake ../ make cpack -G DEB + - name: Try install it + run: | + cd build + sudo apt install ./*.deb - uses: actions/upload-artifact@v2 with: name: ubuntu-20.04-deb-package diff --git a/CMakeLists.txt b/CMakeLists.txt index 501f634..0e282ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,7 +239,7 @@ elseif (APPLE) # ... elseif (UNIX) set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") - set (CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5svg5, libexiv2-14") + set (CPACK_DEBIAN_PACKAGE_SHILIBDEPS ON) set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins") endif()