Skip to content

Instantly share code, notes, and snippets.

@headius
Created October 17, 2025 18:02
Show Gist options
  • Save headius/6739de6c094e368bd38b409676407bcd to your computer and use it in GitHub Desktop.
Save headius/6739de6c094e368bd38b409676407bcd to your computer and use it in GitHub Desktop.
Two steps to create a redistributable Ruby app in an executable jar
[] image_voodoo_demo $ jruby -Ilib exe/voodoo PXL_20250802_162259596.jpg
wrote demo files to /Users/headius/work/image_voodoo_demo/PXL_20250802_162259596/
[] image_voodoo_demo $ ls PXL_20250802_162259596
border.jpg cropped_thumb.jpg cropped.jpg reduced.jpg resized.jpg resized.png thumb.jpg
[] image_voodoo_demo $ rm -rf PXL_20250802_162259596
[] image_voodoo_demo $ gem install warbler
Fetching warbler-2.1.0.gem
Successfully installed warbler-2.1.0
Parsing documentation for warbler-2.1.0
Installing ri documentation for warbler-2.1.0
Done installing documentation for warbler after 1 seconds
1 gem installed
A new release of RubyGems is available: 3.6.9 → 3.7.2!
Run `gem update --system 3.7.2` to update your installation.
[] image_voodoo_demo $ warble
Resolving dependencies...
rm -f image_voodoo_demo.jar
Creating image_voodoo_demo.jar
[] image_voodoo_demo $ java -jar image_voodoo_demo.jar PXL_20250802_162259596.jpg
wrote demo files to /Users/headius/work/image_voodoo_demo/PXL_20250802_162259596/
[] image_voodoo_demo $ ls PXL_20250802_162259596
border.jpg cropped_thumb.jpg cropped.jpg reduced.jpg resized.jpg resized.png thumb.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment