diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index c8f0cc5b98a01..6c6a27a3d3051 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -383,7 +383,7 @@ macro(createPackage) find_program(CODESIGN_PATH codesign) if (CODESIGN_PATH) install(CODE "message(STATUS \"Signing bundle '${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME}'...\")") - install(CODE "execute_process(COMMAND ${CODESIGN_PATH} --force --deep --entitlements ${CMAKE_SOURCE_DIR}/resources/macos/Entitlements.plist --sign - ${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME} COMMAND_ERROR_IS_FATAL ANY)") + install(CODE "execute_process(COMMAND ${CODESIGN_PATH} --force --deep --entitlements ${CMAKE_SOURCE_DIR}/resources/dist/macos/Entitlements.plist --sign - ${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME} COMMAND_ERROR_IS_FATAL ANY)") endif() endif() diff --git a/dist/compiling/macos.md b/dist/compiling/macos.md index c8122a62e51e9..f983e449f6350 100644 --- a/dist/compiling/macos.md +++ b/dist/compiling/macos.md @@ -3,7 +3,7 @@ On macOS, ImHex is built through regular GCC and LLVM clang. 1. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules` -2. Install all the dependencies using `brew bundle --no-lock --file dist/macOS/Brewfile` +2. Install all the dependencies using `brew bundle --file dist/macOS/Brewfile` 3. Build ImHex itself using the following commands: ```sh cd ImHex @@ -17,6 +17,8 @@ cmake -G "Ninja" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="./install" \ -DIMHEX_GENERATE_PACKAGE=ON \ + -DIMHEX_SYSTEM_LIBRARY_PATH="$(brew --prefix llvm)/lib;$(brew --prefix llvm)/lib/unwind;$(brew --prefix llvm)/lib/c++;$(brew --prefix)/lib" \ + -DIMHEX_RESIGN_BUNDLE=ON \ .. ninja install ```