Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3df5a15a authored by hhakim's avatar hhakim
Browse files

Add postinst. script for macOS to open the readme automatically after installation.

parent b354a3d5
No related branches found
No related tags found
No related merge requests found
...@@ -846,6 +846,11 @@ ELSE(WIN32 AND NOT UNIX) ...@@ -846,6 +846,11 @@ ELSE(WIN32 AND NOT UNIX)
file(APPEND ${PROJECT_BINARY_DIR}/postinstall "${POSTINST2_LINES}") file(APPEND ${PROJECT_BINARY_DIR}/postinstall "${POSTINST2_LINES}")
file(REMOVE ${PROJECT_BINARY_DIR}/postinstall2) file(REMOVE ${PROJECT_BINARY_DIR}/postinstall2)
endif() endif()
# postscript to auto open readme
configure_file(${PROJECT_SOURCE_DIR}/misc/binpkg_postinst_scripts/macosx/postinst_open_readme.sh ${PROJECT_BINARY_DIR}/postinstall2 @ONLY)
file(READ ${PROJECT_BINARY_DIR}/postinstall2 POSTINST2_LINES)
file(APPEND ${PROJECT_BINARY_DIR}/postinstall "${POSTINST2_LINES}")
file(REMOVE ${PROJECT_BINARY_DIR}/postinstall2)
ELSE(APPLE) ELSE(APPLE)
SET(CPACK_GENERATOR "DEB;RPM") SET(CPACK_GENERATOR "DEB;RPM")
#SET(CPACK_DEBIAN_PACKAGE_DEPENDS "python, python-numpy, libfftw3-3, libsndfile1") #SET(CPACK_DEBIAN_PACKAGE_DEPENDS "python, python-numpy, libfftw3-3, libsndfile1")
......
#!/bin/bash
[[ -r "@CMAKE_INSTALL_PREFIX@/doc/html/README.html" ]] && open @CMAKE_INSTALL_PREFIX@/doc/html/README.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment