【发布时间】:2014-12-04 01:37:55
【问题描述】:
在 mac osx 中创建 .pkg 时,如何包含 preinstall/postinstall 脚本所需的文件?
我已经在终端中执行了这个命令并生成了.pkg;但是,当我双击生成的 .pkg 文件时,什么也没有发生。
pkgbuild --root ./files --scripts ./scripts --identifier com.example.myapp --version 1 --install-location /Applications mypackage.pkg
在哪里: /files(包含安装前/安装后脚本的必要文件)和 /scripts(包含安装前/安装后脚本)
【问题讨论】: