Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 shell 脚本,我想在目标构建阶段结束时运行它。但是,我希望这个脚本只在我使用发布配置构建时运行。如何才能做到这一点?谢谢!
if [ "${CONFIGURATION}" = "Release" ]; then echo Do something really release-like fi
该脚本将在每个配置结束时运行,但在这种情况下它不会做任何事情,除非配置是 Release(假设它所做的一切都包含在测试块中)。
最简单的方法是选中“仅在安装时运行脚本”复选框。