【工作经历:阿里巴巴搜索技术研发中心QA ,百度新产品测试部QA】 【领域:测试分析,自动化测试,性能测试,安全测试 】 【个人定位:高级测试工程师+培训师+领域产品专家】

把ruby脚本转换为exe文件

上一篇 / 下一篇  2009-05-15 21:55:36 / 个人分类:ruby

写出来的ruby脚本,交给别人的话,还要让别人安装ruby,就太麻烦了。
使用exerb可以轻松的把ruby代码转换为exe文件。

exerb会跟踪脚本的执行,然后把相应的需要的库集成到exe文件中。里面肯定是包含了一个小小的ruby解析器了。

用法

mkexy test.rb
exerb test.exy 
就会生成exe文件了。可能还有点大,你可以使用upx,aspack等压缩工具进行压缩下就ok了。
虽然大了点,但是将就着使用了。



接触ruby的第一件头痛的事情。以后要受制于日本人了。呵呵。无奈公司选择了ruby。

$Id: README.en.txt,v 1.1 2006/06/20 01:51:20 yuya Exp $

 Exerb is the software which converts scripts and extension-libraries of Ruby
into an executable file of Microsoft Windows which can execute alone and
independently.

...but, I'm sorry. The English documentation is under construction.
If you want any information about Exerb, please read the following URI.

http://www.google.com/search?q=Exerb

Thanks.


TAG:

 

评分:0

我来说两句

Open Toolbar