Skip to content
  • Clinton Stimpson's avatar
    PackageMaker: Enable postflight script in component mode (#12375) · 4374441f
    Clinton Stimpson authored and Brad King's avatar Brad King committed
    Previously, setting CPACK_POSTFLIGHT_SCRIPT had no effect in
    component mode, when CPACK_COMPONENTS_ALL was set.
    
    In component mode, a .mpkg is created that contains multiple .pkg's.
    Because postflight scripts only work in a .pkg, add another .pkg to the
    .mpkg and put the postflight script in that.
    This is the same approach taken by the PackageMaker GUI when adding
    a postflight script to a metapackage.
    4374441f