From 2b8ef416c302cf685f89837fff8364917bd5f57e Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Thu, 2 Sep 2021 19:13:51 -0300 Subject: [PATCH] Remove old mac installer packaging --- CMakeLists.txt | 2 +- cmake/installer.cmake | 4 --- cmake/macos_installer_deps.cmake | 56 -------------------------------- 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 cmake/macos_installer_deps.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 105ce499d..bb2983c51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,6 +357,6 @@ if(NOT TARGET uninstall) endif() -if(BUILD_PACKAGE) +if(BUILD_PACKAGE AND NOT APPLE) include(cmake/installer.cmake) endif() diff --git a/cmake/installer.cmake b/cmake/installer.cmake index b08a9d7b4..b8c04e563 100644 --- a/cmake/installer.cmake +++ b/cmake/installer.cmake @@ -7,10 +7,6 @@ if(WIN32) include(cmake/win32_installer_deps.cmake) endif() -if(APPLE) - include(cmake/macos_installer_deps.cmake) -endif() - # This must always be last! include(CPack) diff --git a/cmake/macos_installer_deps.cmake b/cmake/macos_installer_deps.cmake deleted file mode 100644 index b315b389b..000000000 --- a/cmake/macos_installer_deps.cmake +++ /dev/null @@ -1,56 +0,0 @@ -# macos specific cpack stuff goes here - -return() - -# Here we build lokinet-network-control-panel into 'lokinet-gui.app' in "extra/" where a postinstall -# script will then move it to /Applications/. -set(LOKINET_GUI_REPO "https://github.com/oxen-io/loki-network-control-panel.git" - CACHE STRING "Can be set to override the default lokinet-gui git repository") -set(LOKINET_GUI_CHECKOUT "origin/master" - CACHE STRING "Can be set to specify a particular branch or tag to build from LOKINET_GUI_REPO") -set(MACOS_SIGN_APP "" # FIXME: it doesn't use a Apple Distribution key because WTF knows. - CACHE STRING "enable codesigning of the stuff inside the .app and the lokinet binary -- use a 'Apple Distribution' key (or description) from `security find-identity -v`") -set(MACOS_SIGN_PKG "" - CACHE STRING "enable codesigning of the .pkg -- use a 'Developer ID Installer' key (or description) from `security find-identity -v`") -set(MACOS_NOTARIZE_USER "" - CACHE STRING "set macos notarization username; can also set it in ~/.notarization.cmake") -set(MACOS_NOTARIZE_PASS "" - CACHE STRING "set macos notarization password; can also set it in ~/.notarization.cmake") -set(MACOS_NOTARIZE_ASC "" - CACHE STRING "set macos notarization asc provider; can also set it in ~/.notarization.cmake") - -if(NOT BUILD_STATIC_DEPS) - message(FATAL_ERROR "Building an installer on macos requires -DBUILD_STATIC_DEPS=ON") -endif() - -#set(CPACK_GENERATOR "Bundle") - -#set(MACOSX_BUNDLE_BUNDLE_NAME Lokinet) -#set(CPACK_BUNDLE_NAME Lokinet) -#set(CPACK_BUNDLE_PLIST ${CMAKE_SOURCE_DIR}/contrib/macos/Info.plist) -#set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_BINARY_DIR}/lokinet.icns") -#set(CPACK_BUNDLE_STARTUP_COMMAND ${CMAKE_BINARY_DIR}/daemon/lokinet) -#set(MACOSX_BUNDLE_GUI_IDENTIFIER org.lokinet.lokinet) -#set(MACOSX_BUNDLE_INFO_STRING "Lokinet IP Packet Onion Router") -#set(MACOSX_BUNDLE_LONG_VERSION_STRING ${PROJECT_VERSION}) -#set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION}) -#set(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}) -#set(MACOSX_BUNDLE_COPYRIGHT "© 2021, The Loki Project") -#set(CPACK_BUNDLE_APPLE_ENTITLEMENTS ${CMAKE_SOURCE_DIR}/contrib/macos/lokinet.entitlements) -#set(CPACK_BUNDLE_APPLE_CERT_APP "${MACOS_SIGN_APP}") - -if(MACOS_SIGN_APP AND MACOS_SIGN_PKG) - if(NOT MACOS_NOTARIZE_USER) - if(EXISTS "$ENV{HOME}/.notarization.cmake") - include("$ENV{HOME}/.notarization.cmake") - endif() - endif() - if(MACOS_NOTARIZE_USER AND MACOS_NOTARIZE_PASS AND MACOS_NOTARIZE_ASC) - message(STATUS "'notarization' target enabled") - configure_file(${CMAKE_SOURCE_DIR}/contrib/macos/notarize.py.in ${CMAKE_CURRENT_BINARY_DIR}/contrib/notarize.py ESCAPE_QUOTES @ONLY) - file(COPY ${CMAKE_CURRENT_BINARY_DIR}/contrib/notarize.py DESTINATION ${PROJECT_BINARY_DIR} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE) - add_custom_target(notarize ./notarize.py) - else() - message(WARNING "Not enable 'notarization' target: signing is enabled but notarization info not provided. Create ~/.notarization.cmake or set cmake parameters directly") - endif() -endif()