Discussion:
[CMake] CPack packagemaker osx post install script
Francois Coulombe
2013-08-31 23:07:18 UTC
Permalink
Hi,
I am wondering if anyone has managed to get the post install post flight
post upgrade to work on osx with package maker as generator.
I found a few entries that didn't seem to go anywhere (no resolution to
the actual problem)

and i can't seem to get it to work with:

set( CPACK_POSTFLIGHT_SCRIPT "postflight.sh" )
set(CPACK_POSTUPGRADE_SCRIPT "postflight.sh")

neither seem to run.

any info would be appreciated

cheers
Francois
Eric Noulard
2013-09-02 06:16:02 UTC
Permalink
Post by Francois Coulombe
Hi,
I am wondering if anyone has managed to get the post install post flight
post upgrade to work on osx with package maker as generator.
I found a few entries that didn't seem to go anywhere (no resolution to the
actual problem)
set( CPACK_POSTFLIGHT_SCRIPT "postflight.sh" )
set(CPACK_POSTUPGRADE_SCRIPT "postflight.sh")
Those var are undocumented but I guess that you should try tp specify
abspmute path for those files, like:

set(CPACK_POSTFLIGHT_SCRIPT "${CMAKE_CUURENT_SOURCE_DIR}/postflight.sh" )

the cmake-gui app use this so that yu may find example of use in the
CMake sources.
(Source/QtDialog/*)
Post by Francois Coulombe
neither seem to run.
If it doesn't work, may be you can try to run cpack using --debug and
--verbose and give
us the obtained output.
--
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
Loading...