我相信我当前的构建脚本会创建一个安装程序,如果版本较新,它只会覆盖现有的二进制文件,但我想让我的用户能够返回到以前的版本以防万一。
我目前的构建是:
pkgbuild --analyze --root "./thing/" "name.plist"
pkgbuild --root "./thing/" \
--component-plist "name.plist" \
--identifier "com.me.pkg.name" \
--version $VERSION \
--install-location "/Library/Audio/Plug-Ins/Components" \
"name.pkg"
我是否只需删除 --version 标志?