Isaac please forgive me for mispelling your name. I type too quickly sometimes!
On Apr 21, 2010, at 3:46 PM, Gary Weaver wrote: > Daniel, > > Thanks for sharing! Getting a MacRuby app down to 4.4 MB is definitely cool. > > I'm in the minority here because I developed my HotCocoa app only with a text > editor (TextMate) and HotCocoa 0.5.1/MacRuby 0.5. I'm looking forward to > being able to continue to develop like that in the future, so solutions that > solely use macrake and things I could do in TextMate are what I'd be > interested in, and I'd bet that at least some of the community coming from > the Ruby/Rails side are probably in the same boat (would rather at least > start of more simply). And I completely understand that almost everyone who's > into MacRuby at the moment doesn't do much without xcode. > > Have you tried doing this with a HotCocoa app? > > I know that Isaas Kearse did some time back as noted here: > http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/ > and he submitted a patch to HotCocoa here: > http://github.com/richkilmer/hotcocoa/issues#issue/7 > http://github.com/isaac/hotcocoa/commit/3c3db96fa8b9228c2ef7b65a65122ff0a53142dc > via a new config variable called stdlib. Setting it to false will not bundle > the standard library into the app. > He provides an example project that uses this setting here: > http://github.com/isaac/SafariRSS > > But, with the standard library a HotCocoa MacRuby app is ~150MB at minimum > (MacRuby 0.5/HotCocoa 0.5.1 on Snow Leopard). > > I don't want anyone to be distracted from making MacRuby itself better, but I > was just thinking that if there is an easy enough way to compile MacRuby to > machine code, perhaps someone could work on a way to get HotCocoa apps down > to size as well via similar mechanism. It would be nice to have a compiled > version of my HotCocoa app, including the standard library, such that it is a > much smaller size. I understand that this is very likely not a small task. > > Basically it would be nice if, once people started having time to worry about > such things, more time was spent on HotCocoa to make it better, and a small > part of that might be making the generated app size smaller without having to > exclude the standard library. > > Hope this helps! > Gary > > > On Apr 21, 2010, at 12:47 PM, Daniel Lopes wrote: > >> Gary, take a look in this video: Embedding MacRuby >> >> You will see that the xcode template target is just a shell command and you >> can call it from terminal. You also be able to open the packaged file and >> remove things that you don't need (like showed in video). >> >> >> On Wed, Apr 21, 2010 at 11:18 AM, Gary Weaver <gary.wea...@duke.edu> wrote: >> Laurent, >> >> That sounds cool! >> >> I read the section on compilation in http://www.macruby.org/blog/index.html >> but am curious- is there an easy way to compile an app completely >> (specifically a HotCocoa app) into machine code using macrake (similar to >> "macrake deploy") and not just on a file-by-file basis using macrubyc (rb >> file) -o t? If so, would like to try that to decrease the size of the entire >> HotCocoa app to be < 150MB possibly, while not requiring the runtime or >> anything else to be installed (so app is completely self-contained). Sorry >> to distract. Am just curious. >> >> Thanks! >> Gary >> >> >> >> On Apr 20, 2010, at 10:42 PM, Laurent Sansonetti wrote: >> >> > FYI, it is possible to compile all your Ruby code into machine code, to >> > prevent trivial reverse engineering. >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel