Mac installers with pkgbuild: Do not execute preinstall and postinstall script in case of a downgrade

隐身守侯 提交于 2019-12-12 20:50:16

问题


I made a package with pkgbuild. In info.plist, BundleIsVersionChecked is set to true. My package contains a preinstall and postinstall script in the scripts folder.

A downgrade of my application bundle is indeed prevented. But the preinstall and postinstall script is always run, even if the application bundle is not installed.

How can I tell pkgbuild not to execute the preinstall and postinstall script when a downgrade is happening?

来源:https://stackoverflow.com/questions/20288834/mac-installers-with-pkgbuild-do-not-execute-preinstall-and-postinstall-script-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!