The --scripts should go to pkgbuild in order for preinstall and postinstall script to work. So the single productbuild command has to be separated into pkgbuild and productbuild.
I am not sure if the --scripts in productbuild has any practical use. Might need to add an new option if need to retain the --scripts for both productbuild and pkgbuild
The
--scripts
should go topkgbuild
in order for preinstall and postinstall script to work. So the singleproductbuild
command has to be separated intopkgbuild
andproductbuild
.I am not sure if the
--scripts
inproductbuild
has any practical use. Might need to add an new option if need to retain the--scripts
for bothproductbuild
andpkgbuild