Skip to content

Exporting Applications

Martin Prout edited this page Nov 19, 2013 · 8 revisions

h2. Tripartite Application Export

Ruby-Processing can export Mac/Windows/Linux applications:

@jruby -S rp5 app path/to/my_sketch.rb@

It will pack up your app, its data folder, all of the libraries that it's loading, and tuck them into a brand-new MySketch.app, ready to share. If you happen to have a @.icns@ icon file in your data folder, it will use that for the icon of your application (for Macs). Now you can distribute the application without any need to install JRuby or Ruby-Processing.

For Windows and Linux, the .app acts as a folder containing executable programs. You can rename it or share it as is (one caveat is that any custom ruby-libraries need be to wrapped in the correct folder, as per the original library).

!http://s3.amazonaws.com/jashkenas/images/dock_ruby_processing_app.png!
A Ruby-Processing application, running in the Dock

Check out the Gallery to grab some application examples.

Clone this wiki locally