Self-extracting archives

Hi,

This is a question for people who distribute Ruby programs to folks
that don’t have Ruby. In particular, Windows users.

How do you do it?

I figure that there must be a way to write a self-extracting archive for
Windows using tools that are compatible with open source development.

Under Unix I’d use Makeself. Makeself creates a shell script with binary
data at the end (corresponding to a .tar.gz archive). This archive is
extracted and then Makeself runs any program of your choosing (e.g. the
installer). And then cleans up after itself.

Is there some equivalent program for Windows that has a friendly license?

Cheers,

···


Daniel Carrera | No trees were harmed in the generation of this e-mail.
PhD student. | A significant number of electrons were, however, severely
Math Dept. UMD | inconvenienced.

Daniel Carrera wrote:

Hi,

This is a question for people who distribute Ruby programs to folks
that don’t have Ruby. In particular, Windows users.

Is there some equivalent program for Windows that has a friendly license?

Go to the RAA and grab rubyscript2exe. It is great! If you compress
your dll’s before you create the exe you can get a really small,
self-contained executable.

Using the above method, I have been able to create an exe of a
medium-complexity FXRuby program that was only around 2MB.

Jamey Cribbs

Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.

see http://www.rubygarden.org/ruby?DistributeARubyAppInASingleExecutable

···


Chris
http://clabs.org

This is a question for people who distribute Ruby programs to folks
that don’t have Ruby. In particular, Windows users.

Is there some equivalent program for Windows that has a friendly license?

Try NullSoft installer.

Works really nicely in my experience.

Can I do the same with ruby-gtk? (The answer is no, I’m afraid :frowning:

Gergo

···

On 0310, Jamey Cribbs wrote:

Go to the RAA and grab rubyscript2exe. It is great! If you compress
your dll’s before you create the exe you can get a really small,
self-contained executable.

Using the above method, I have been able to create an exe of a
medium-complexity FXRuby program that was only around 2MB.


±[ Kontra, Gergelykgergely@mcl.hu PhD student Room IB113 ]---------+

http://www.mcl.hu/~kgergely “Olyan langesz vagyok, hogy |
Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |
±- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+

Aredridel wrote:

This is a question for people who distribute Ruby programs to folks
that don’t have Ruby. In particular, Windows users.

Is there some equivalent program for Windows that has a friendly license?

Try NullSoft installer.

Works really nicely in my experience.

Some links here:

Really quite a nice tool. The HM NIS editor helps a lot, too.

James Britt

Aredridel aredridel@nbtsc.org wrote in
news:20040309183302.GB27122@mail.nbtsc.org:

This is a question for people who distribute Ruby programs to folks
that don’t have Ruby. In particular, Windows users.

Is there some equivalent program for Windows that has a friendly
license?

Try NullSoft installer.

Works really nicely in my experience.

Or Inno installer.

···


Robert Cowham

Gergely Kontra wrote:

Go to the RAA and grab rubyscript2exe. It is great! If you compress
your dll’s before you create the exe you can get a really small,
self-contained executable.

Using the above method, I have been able to create an exe of a
medium-complexity FXRuby program that was only around 2MB.

Can I do the same with ruby-gtk? (The answer is no, I’m afraid :frowning:

You are right, it’s not as easy with ruby-gtk. You can get fairly close
though. Using upx to compress the gtk runtime dlls and python dlls, I
was able to create an installer for a Python PyGTK application that was
5-6MB in size. This included everything the user needed to run the app
on Windows including the GTK2 runtime.

Jamey

Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.

···

On 0310, Jamey Cribbs wrote: