将Ruby打包到独立的Mac OS X应用程序? [英] Package Ruby to a standalone Mac OS X application?

查看:154
本文介绍了将Ruby打包到独立的Mac OS X应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Python具有 py2app .我想知道Ruby是否有类似的东西.我知道有 OCRA (一个-单击"Ruby应用程序构建器"(适用于Windows),但适用于Mac OS X呢?

I know Python has py2app. I was wondering if Ruby has anything like that. I know there is OCRA (One-Click Ruby Application builder) for Windows, but what about for Mac OS X?

推荐答案

看看鸭嘴兽 ;它可能会做您想要的.

Take a look at Platypus; it may do what you want.

在其主页上:

Platypus是针对 Mac OS X操作系统.有可能 用于完美地创建本机 集成了Mac OS X应用程序 解释的脚本,例如shell 脚本或Perl和Python程序. 这是通过将脚本包装在 应用程序捆绑目录 结构以及可执行文件 运行脚本的二进制文件.

Platypus is a developer tool for the Mac OS X operating system. It can be used to create native, flawlessly integrated Mac OS X applications from interpreted scripts such as shell scripts or Perl and Python programs. This is done by wrapping the script in an application bundle directory structure along with an executable binary that runs the script.

在注释中按 @XtraSimplicity 进行

编辑:鸭嘴兽不能处理任何输入或stdinstdout的输出.在某些情况下,可以排除这种情况.

Edit per @XtraSimplicity in a comment: Platypus can't handle any input or output from stdin or stdout. That will rule it out in some cases.

这篇关于将Ruby打包到独立的Mac OS X应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆