From: Robert Feldt Date: 2001-12-18T19:30:27+09:00 Subject: [ruby-talk:28859] Re: [IDEA] creating stand-alone versions for easy distribution etc On Tue, 18 Dec 2001, Patrik Sundberg wrote: > i actually didn't look into your rbwrap since i recall it was windows only. at > a closer look it might be a lot like what the python application does, in > principle at least. > rbwrap is windows-specific but not very much. The README mentions what you need to do to make it work on another platform: Here's what you need to do (I might have missed something...): * Make sure find_ruby_binaries identifies all ruby binaries needed to run Ruby as a stand-alone app on your platform. Current impl. is very Cygwin-specific (and ugly!). I plan to replace it as soon as possible. Any ideas you might have are welcomed. * Make sure compiler can be accessed. I currently do system "gcc ..." * Make memunwrapper.c compilable, linkable and runnable. Check file separators. Currently assumes its "\". It currently uses some Windows- or Cygwin-specific API calls. Nothing fancy and it's straightforward to find corresponding calls on your platform: GetModuleFileNameA - to get the name of the unwrapper exe This is unnecessary and I plan to take it from argv instead. GetTempPath - Get path to temp dir > a description of their approach is at: > http://www.mcmillan-inc.com/standalones.html > I guess its more mature than rbwrap so probably focus on their stuff first? Good luck, Robert