Try source dir first
parent
08dff5c51f
commit
6a5d5f60bf
|
@ -83,9 +83,11 @@ if(WIN32)
|
|||
install(PROGRAMS go-ipfs/ipfs.exe DESTINATION bin)
|
||||
elseif(APPLE)
|
||||
# Apple macOS specific
|
||||
install(DIRECTORY misc/packaging_icons/ DESTINATION ${DATADIR}/icons)
|
||||
install(DIRECTORY misc/packaging_macos/ DESTINATION ${MACOSDIR})
|
||||
install(PROGRAMS go-ipfs/ipfs-darwin DESTINATION ${MACOSDIR})
|
||||
#
|
||||
## ~~ Speed-up the packaging for now, disabled temp! ~~ ##
|
||||
#install(DIRECTORY misc/packaging_icons/ DESTINATION ${DATADIR}/icons)
|
||||
#install(DIRECTORY misc/packaging_macos/ DESTINATION ${MACOSDIR})
|
||||
#install(PROGRAMS go-ipfs/ipfs-darwin DESTINATION ${MACOSDIR})
|
||||
elseif(UNIX)
|
||||
# UNIX specific
|
||||
install(FILES misc/libreweb-browser.desktop DESTINATION ${DATADIR}/applications)
|
||||
|
|
|
@ -181,7 +181,10 @@ if(NOT UNITTEST)
|
|||
|
||||
# Fix-up bundle & verify if app is standalone
|
||||
# https://cmake.org/cmake/help/latest/module/BundleUtilities.html
|
||||
set(APPS "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app")
|
||||
# CMAKE_INSTALL_PREFIX
|
||||
# CMAKE_CURRENT_SOURCE_DIR
|
||||
# CMAKE_BINARY_DIR/src/..
|
||||
set(APPS "${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.app")
|
||||
# APPS might be a symbolic link which does not work with fixup_bundle
|
||||
# expand APPS to a real path
|
||||
get_filename_component(APPS_EXPANDED ${APPS} REALPATH)
|
||||
|
|
Loading…
Reference in New Issue