Distributing and application

i am currently looking into GUI libraries for cross platform ruby
development. the question i have is… if i use wxRuby to develop my
application, how do i distribute it? is there a way that i can package
it up for SIMPLE consumption by osx/lin/win users?

my development platform is osx…

thanks!

Am 07.06.2010 07:42, schrieb Sergio R.:

i am currently looking into GUI libraries for cross platform ruby
development. the question i have is… if i use wxRuby to develop my
application, how do i distribute it? is there a way that i can package
it up for SIMPLE consumption by osx/lin/win users?

my development platform is osx…

thanks!

hi sergio,

for windows user i’m producing a simple exe file using rubyscript2exe.
This exe file contains all dependencies, interpreter, wx stuff etc.

http://www.erikveen.dds.nl/rubyscript2exe/

I can remember, that i modified the script due to a bug i forgot, but i
attached the file that i’m using.

for linux in conjunction with the package managers it is (to my mind)
not too intelligent to produce an exe file, because such an exe file
needs to be extracted and that takes some (unnecessary) seconds.

a bit more userfriendly in my opinion is the installation of
ruby-gnome2, not on linux, but on windows. refer to:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+Windows

kind regards,
der max

Maximilian Bräutigam wrote:

for windows user i’m producing a simple exe file using rubyscript2exe.
This exe file contains all dependencies, interpreter, wx stuff etc.

rubyscript2exe.rb is out of date (it cannot not be used with recent
versions of RubyGems, at least the unmodified version). Have a look at
OCRA instead: ocra | RubyGems.org | your community gem host

As well as rubyscript2exe did it compiles your application together with
a Ruby Interpreter and all used gems into a single executable which
additionally remains quite small (thanks to lzma compression).

In case of Linux users you don’t need to worry too much. It’s not a big
deal to just do something like “sudo apt-get install ruby-full” or the
like (depending on used distrubution and Ruby version) followed by a
“sudo gem install wxruby”.

For Mac users I don’t know. I never had a Mac.

Marvin

hmm… i am starting to think i might just want to write this app with
something else…

my main goals are simplicity for the end user… on three platforms…

thanks for all the input!

Hi Sergio,

my main goals are simplicity for the end user… on three platforms…

I’d be very interested in what you came up with. I’ve been pondering
about that for a while and neither rubyscript2exe nor ocra seemed to
work the way I expected them to. Maybe I didn’t spend enough effort but
it all looked kind of flaky to me.

So … if you don’t end up writing Java code - let us know what your
solution was :slight_smile:

Cheers,
Tony

cocoa is great but there will be “3 platforms” - am I wrong?

2010/6/10 Sergio R. [email protected]

So … if you don’t end up writing Java code - let us know what your
solution was :slight_smile:

i have decided i will probably go with Qt or cocoa…

Sergey C. wrote:

cocoa is great but there will be “3 platforms” - am I wrong?

not sure what you mean…

Sergio R. wrote:

hmm… i am starting to think i might just want to write this app with
something else…

my main goals are simplicity for the end user… on three platforms…

thanks for all the input!

Hello,

I was also assessing these weeks the possibility of writing some GUI in
wxruby, but I could not find an appropriate program to compile the
resulting application for Win/Mac/Linux users. (have you tried ocra or
crate?)
What did you do in the meantime? have you found some useful program or
you changed your mind on writing in wxruby?

Cristian

For Mac users I don’t know. I never had a Mac.

I’ve created a small github project showing how to package wxRuby app
using Platypus (Platypus - Create Mac apps from command line scripts |). It’s very quick and
dirty solution, but should work for most cases

http://github.com/plugawy/miniwx/ (I’m sorry for any grammar/spelling
mistakes - english isn’t my first language :-))

Łukasz

I meant, you can write a great ui using ruby-cocoa, but it won’t work
anywhere but on maÓ, while the intention was, as far as I got, make it
work on “3 platforms”

Yours,
Sergey

21.06.2010, × 18:53, Sergio R. [email protected] ÎÁÐÉÓÁÌ(Á):