Skip to content
This repository has been archived by the owner. It is now read-only.
Compile ruby applications into a single ruby script file for easy deployment
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ev
CHANGELOG
LICENSE
README.rdoc
SUMMARY
VERSION
init.rb
tar.exe
tarrubyscript.rb

README.rdoc

Tar2RubyScript

Original Code: www.erikveen.dds.nl/tar2rubyscript

Tar2RubyScript transforms your application directory tree into a single Ruby script containing a launcher script and an archive of the original application. The script can then be distributed as a single file. However, it still requires Ruby and the appropriate gems installed to run.

There are two Ruby scripts:

  • init.rb

  • tarrubyscript.rb.

init.rb is the archiver that creates the compiled Ruby script, and tarrubscript.rb is the launcher that is embedded in the compiled Ruby script.

Updated to handle Ruby 1.8.7

This repository contains the same update as github.com/cowlibob/rubyscript2exe, but as raw source in tar2rubyscript.

I've released this as it appears the original project is no longer being maintained. Feel free to pull this into any authoritative branch that may exist.

Building

To build the repository simply run:

ruby tar2rubyscript/init.rb tar2rubyscript/

The script will compile itself into a distributable Ruby script archive (tar2rubyscript.rb) that can be used to compile other Ruby applications.

ruby tar2rubyscript.rb myapp/
You can’t perform that action at this time.