mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
* feat: initial conan support * feat: add awg-go and awg-apple recipes * feat: macos full feature conan build, except ss and cloak * feat: conan android initial support * fix: android libssh fixes * conan: android additional recipes and fixes * feat: openvpn add support android * fix: awg android connection establish * conan: apple full-featured support * chore: bump min macos version * chore: get rid of manual deploy recursive copying * conan: beautify makefile-based recipes * conan: add geosite.dat and geoip.dat * conan: use lib linking instead of QT_EXTRA_LIBS for OVPN * conan: address lack of SONAME of libck-ovpn-plugin.so correctly * conan: windows initial support * conan: make awg-windows and wintun be interpret as exes * conan: fix version for v2ray-rules-dat * feat: conan and platform bootstrap rework in cmake * feat: 16kb support for Android * chore(conan): recipes cleanup * feat: support of drivers for windows * feat: support full-featured cmake install * chore: exclude qtkeychain from the target build * fix: install for apple systems * fix: provide flags for cloak plugin for openvpn-pt-android * chore: bump android deps for 16kb support * feat(conan): patch cloak to properly provide env for golang * chore: remove redundant hint from conan find * feat: linux <-> conan features * feat: linux initial packaging support * feat: linux cpack support * feat: cpack windows full-featured build * feat: productbuild cpack support * feat: rework CI/CD for macos * feat: rework CI/CD for Linux * fix: libncap automake args * fix: CI/CD correct QT paths * fix: windows rework CI/CD * fix: windows artifact upload * chore: remove MacOS-old from build targets * feat: add conan to all mobile and NE builds * feat: support default amnezia conan remote * fix: use Release instead of release on Android * feat: get rid of 3rd-prebuilt * feat: conan CI/CD upload * fix: CI/CD change windows toolset versions * fix: remove MSVC version from CI/CD * feat: conan CI/CD add Release and Debug build types * feat: add multiple xcode versions for conan CI/CD * fix: correct conan CI/CD clang versions * feat: separate prebuilt baking, and add some for NE * feat: rework keychain on ios/macos even more * fix: add desktop Qt for iOS * feat: add QT_HOST_PATH to build.sh * fix: add deploy definition to cmake * fix: android adjustments for toolchains and CI/CD * fix: add needs for Android CI/CD * fix: Android CI/CD use android-28 * fix: modernize translations, and CI/CD fixes * fix: gradle min sdk compilation error * fix: CI/CD add installers to all jobs * fix: parse android platform more precisely * fix: adjust aab path in CI/CD * feat: CI/CD do not execute artifact build if there is nothing changed * fix: CI/CD use common jobs even if previous were failed * fix: Apple CI/CD use set-key-partition-list for keychains * fix: Apple CI/CD do not specify any keychain (use default) * fix: build aab as a different step in build script * chore: beautify build.sh script * feat: CI/CD build separate APKs per ABI * fix: Android CI/CD upload artifact in separate steps * chore: recipes cleanup * feat: add hints for conan on MacOS * fix: add main.cpp and tests back to CMakeLists.txt * chore: xrayProtocol codestyle changes * fix: openssl set proper X509 request version * fix: make openvpn protocol rely only on client while configuring * chore: get rid of old scripts * chore: readme update describing build process more precisely * feat: windows build script add multiprocessing capabilities * chore: bump Qt version in README * feat: add generator option and use Ninja by default in CI/CD for linux/macos --------- Co-authored-by: NickVs2015 <nv@amnezia.org>
92 lines
3.9 KiB
CMake
92 lines
3.9 KiB
CMake
set(CPACK_PACKAGE_VENDOR AmneziaVPN)
|
|
set(CPACK_PACKAGE_VERSION ${AMNEZIAVPN_VERSION})
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY AmneziaVPN)
|
|
set(CPACK_PACKAGE_EXECUTABLES AmneziaVPN AmneziaVPN)
|
|
set(CPACK_PRE_BUILD_SCRIPTS ${CMAKE_CURRENT_LIST_DIR}/sign_binaries.cmake)
|
|
set(CPACK_POST_BUILD_SCRIPTS ${CMAKE_CURRENT_LIST_DIR}/sign_packages.cmake)
|
|
set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_CURRENT_LIST_DIR}/CPackOptions.cmake)
|
|
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/deploy/data/LICENSE.txt)
|
|
|
|
list(PREPEND CPACK_COMPONENTS_ALL AmneziaVPN)
|
|
|
|
if(APPLE)
|
|
set(CPACK_GENERATOR productbuild)
|
|
else()
|
|
set(CPACK_GENERATOR IFW)
|
|
endif()
|
|
|
|
# === CPack IFW generator settings ===
|
|
set(CPACK_IFW_PACKAGE_NAME AmneziaVPN)
|
|
set(CPACK_IFW_PACKAGE_TITLE AmneziaVPN)
|
|
set(CPACK_IFW_PACKAGE_WIZARD_DEFAULT_WIDTH 600)
|
|
set(CPACK_IFW_PACKAGE_WIZARD_DEFAULT_HEIGHT 380)
|
|
set(CPACK_IFW_PACKAGE_WIZARD_STYLE Modern)
|
|
set(CPACK_IFW_PACKAGE_REMOVE_TARGET_DIR ON)
|
|
set(CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH ON)
|
|
set(CPACK_IFW_PACKAGE_ALLOW_NON_ASCII_CHARACTERS ON)
|
|
set(CPACK_IFW_PACKAGE_CONTROL_SCRIPT ${CMAKE_SOURCE_DIR}/deploy/installer/qif/controlscript.js)
|
|
|
|
# === CPack WIX generator settings ===
|
|
set(CPACK_WIX_VERSION 4)
|
|
set(CPACK_WIX_UPGRADE_GUID "{2D55AC62-96D6-4692-8C05-0D85BBF95485}")
|
|
set(CPACK_WIX_PRODUCT_ICON ${CMAKE_SOURCE_DIR}/client/images/app.ico)
|
|
set(CPACK_WIX_CUSTOM_XMLNS "util=http://wixtoolset.org/schemas/v4/wxs/util")
|
|
set(_AMNEZIA_WIX_PATCH_SERVICE ${CMAKE_SOURCE_DIR}/deploy/installer/wix/service_install_patch.xml)
|
|
set(_AMNEZIA_WIX_PATCH_CLOSE_APP ${CMAKE_SOURCE_DIR}/deploy/installer/wix/close_client_patch.xml)
|
|
file(TO_CMAKE_PATH "${_AMNEZIA_WIX_PATCH_SERVICE}" _AMNEZIA_WIX_PATCH_SERVICE_CMAKE)
|
|
file(TO_CMAKE_PATH "${_AMNEZIA_WIX_PATCH_CLOSE_APP}" _AMNEZIA_WIX_PATCH_CLOSE_APP_CMAKE)
|
|
list(APPEND CPACK_WIX_PATCH_FILE "${_AMNEZIA_WIX_PATCH_SERVICE_CMAKE}" "${_AMNEZIA_WIX_PATCH_CLOSE_APP_CMAKE}")
|
|
list(APPEND CPACK_WIX_EXTENSIONS "WixToolset.Util.wixext")
|
|
|
|
# === CPack productbuild generator settings ===
|
|
set(CPACK_PRODUCTBUILD_IDENTIFIER org.amneziavpn)
|
|
set(CPACK_PREFLIGHT_AMNEZIAVPN_SCRIPT ${CMAKE_SOURCE_DIR}/deploy/data/macos/post_uninstall.sh)
|
|
set(CPACK_POSTFLIGHT_AMNEZIAVPN_SCRIPT ${CMAKE_SOURCE_DIR}/deploy/data/macos/post_install.sh)
|
|
set(CPACK_POSTFLIGHT_UNINSTALL_SCRIPT ${CMAKE_SOURCE_DIR}/deploy/data/macos/post_uninstall.sh)
|
|
# provide custom CPack.distribution.dist.in
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/deploy/data/macos)
|
|
|
|
if(LINUX AND NOT ANDROID)
|
|
install(FILES
|
|
${CMAKE_SOURCE_DIR}/deploy/data/linux/AmneziaVPN.service
|
|
${CMAKE_SOURCE_DIR}/deploy/data/linux/AmneziaVPN.png
|
|
${CMAKE_SOURCE_DIR}/deploy/data/linux/AmneziaVPN.desktop
|
|
${CMAKE_SOURCE_DIR}/deploy/data/linux/post_install.sh
|
|
${CMAKE_SOURCE_DIR}/deploy/data/linux/post_uninstall.sh
|
|
DESTINATION "."
|
|
COMPONENT AmneziaVPN
|
|
)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
install(FILES
|
|
${CMAKE_SOURCE_DIR}/deploy/data/windows/post_install.cmd
|
|
${CMAKE_SOURCE_DIR}/deploy/data/windows/post_uninstall.cmd
|
|
DESTINATION "."
|
|
COMPONENT AmneziaVPN
|
|
)
|
|
endif()
|
|
|
|
if (APPLE AND NOT IOS AND NOT MACOS_NE)
|
|
install(FILES ${CMAKE_SOURCE_DIR}/deploy/data/macos/AmneziaVPN.plist
|
|
DESTINATION "AmneziaVPN.app/Contents/Resources"
|
|
COMPONENT AmneziaVPN
|
|
)
|
|
endif()
|
|
|
|
include(CPackIFW)
|
|
cpack_ifw_configure_component(AmneziaVPN
|
|
VERSION ${AMNEZIAVPN_VERSION}
|
|
RELEASE_DATE ${RELEASE_DATE}
|
|
REQUIRES_ADMIN_RIGHTS
|
|
FORCED_INSTALLATION
|
|
SCRIPT ${CMAKE_SOURCE_DIR}/deploy/installer/qif/componentscript.js
|
|
)
|
|
|
|
include(CPack)
|
|
cpack_add_component(Uninstall
|
|
DISPLAY_NAME "Uninstall AmneziaVPN"
|
|
REQUIRES_ADMIN_RIGHTS
|
|
DISABLED
|
|
)
|