如何限制“运行脚本”我的发布配置的构建阶段?
我有一个 shell 脚本,我想在目标构建阶段结束时运行它。但是,我希望此脚本仅在使用 release 配置构建时运行。这怎么能做到呢?谢谢!
I have a shell script that I would like to run at the end of my target's build phase. However, I would like this script to only run when I build with the release configuration. How can this be done? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该脚本将在每个配置结束时运行,但在这种情况下它不会执行任何操作,除非配置是发布(假设它执行的所有操作都包含在测试块中)。
The script will run at the end of every configuration, but it won't do anything in this case unless the configuration is Release (assuming everything it does is contained within the test block).
最简单的方法是选中“仅在安装时运行脚本”复选框。
< /a>
The easiest way to do this, is checking the "Run script only when installing" checkbox.