Use `build_dist.sh` in CMake instead of `build_installer.sh`

Have CMake always build a bundle, the `build_dist.sh` script will only build a dmg if the build type is "Release"
This commit is contained in:
Chris Simons 2020-05-02 12:33:09 -07:00
parent e37277fe8f
commit 8cd59ebee7
1 changed files with 4 additions and 6 deletions

View File

@ -400,13 +400,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
configure_files (${BARRIER_BUNDLE_SOURCE_DIR} ${BARRIER_BUNDLE_DIR}) configure_files (${BARRIER_BUNDLE_SOURCE_DIR} ${BARRIER_BUNDLE_DIR})
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_target(Barrier_dmg ALL add_custom_target(Barrier_dmg ALL
bash build_installer.sh bash build_dist.sh
DEPENDS barrier barriers barrierc DEPENDS barrier barriers barrierc
WORKING_DIRECTORY ${BARRIER_BUNDLE_DIR}) WORKING_DIRECTORY ${BARRIER_BUNDLE_DIR})
endif() endif()
endif()
# #
# Windows installer # Windows installer