【发布时间】:2016-09-25 07:55:06
【问题描述】:
【问题讨论】:
【问题讨论】:
这是how to add an executable 的 RubyGems 指南。
主要步骤是:
/bin 目录chmod a+x bin/<yourfile>中是可执行的.executables 部分请注意,您仍然需要在本地构建和安装 gem 才能运行没有路径的命令,就像您在屏幕截图中尝试的那样。
building executable gems 中的更多信息。
【讨论】:
.executables 列表仅适用于 Ruby 脚本。