[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] RubyScript2Exe 0.3.1

Erik Veenstra

1/13/2005 10:38:00 PM


RubyScript2Exe 0.3.1 is released!

* Enhanced the support for RubyGems: I'm working on full
support of RubyGems. The handling of require_gem and the
mangling of $: are implemented and all files of a gem are
embedded. I've tested just a couple of gems, not all of them.
If you've troubles with a specific gem, please let me know.

* Added support for .dll extensions and .o extensions.

* Added RUBYSCRIPT2EXE_DLLS. Sometimes, you want to embed an
additional DLL in the executable. That's easily done by
setting RUBYSCRIPT2EXE_DLLS in your application:
'RUBYSCRIPT2EXE_DLLS = ["a.dll", "b.dll", "c.dll"]' At the
end of the tracing of your script, the mentioned DLL's are
copied from the directory in which the application was
started, if they exist. The DLL's on which these DLL's depend
are not copied, in contrast to the dependencies of ruby.exe
and its libraries, which are resolved recursively.

* Fixed a bug concerning backslashes in the tracing part.

gegroet,
Erik V.

6 Answers

Florian Gross

1/13/2005 10:48:00 PM

0

Erik Veenstra wrote:

> * Added RUBYSCRIPT2EXE_DLLS. Sometimes, you want to embed an
> additional DLL in the executable. That's easily done by
> setting RUBYSCRIPT2EXE_DLLS in your application:
> 'RUBYSCRIPT2EXE_DLLS = ["a.dll", "b.dll", "c.dll"]' At the
> end of the tracing of your script, the mentioned DLL's are
> copied from the directory in which the application was
> started, if they exist. The DLL's on which these DLL's depend
> are not copied, in contrast to the dependencies of ruby.exe
> and its libraries, which are resolved recursively.

Thanks a lot for adding this! Can absolute paths be used?

Erik Veenstra

1/13/2005 11:37:00 PM

0

On Thu, 13 Jan 2005 23:48:05 +0100, Florian Gross wrote:

> Erik Veenstra wrote:
>
> > * Added RUBYSCRIPT2EXE_DLLS. Sometimes, you want to embed
> > an additional DLL in the executable. That's easily done by
> > setting RUBYSCRIPT2EXE_DLLS in your application:
> > 'RUBYSCRIPT2EXE_DLLS = ["a.dll", "b.dll", "c.dll"]' At the
> > end of the tracing of your script, the mentioned DLL's are
> > copied from the directory in which the application was
> > started, if they exist. The DLL's on which these DLL's
> > depend are not copied, in contrast to the dependencies of
> > ruby.exe and its libraries, which are resolved recursively.
>
> Thanks a lot for adding this! Can absolute paths be used?

Yes. I do something like this:

fromfile = File.expand_path(dll, fromdir)
tofile = File.expand_path(File.basename(dll), todir)

gegroet,
Erik V.

Erik Veenstra

1/13/2005 11:42:00 PM

0

> fromfile = File.expand_path(dll, fromdir) tofile =
> File.expand_path(File.basename(dll), todir)

I want a better newsreader! Now! The only handicap of Pan is
its reformatting of already formatted text/code...

gegroet,
Erik V.

----------------------------------------------------------------

fromfile = File.expand_path(dll, fromdir)

tofile = File.expand_path(File.basename(dll), todir)

----------------------------------------------------------------

Florian Gross

1/14/2005 12:02:00 AM

0

Erik Veenstra wrote:

>>fromfile = File.expand_path(dll, fromdir) tofile =
>>File.expand_path(File.basename(dll), todir)
>
> I want a better newsreader! Now! The only handicap of Pan is
> its reformatting of already formatted text/code...

Came through just fine for me on two lines. (Mozilla Thunderbird)

vruz

1/16/2005 7:57:00 PM

0

> > Thanks a lot for adding this! Can absolute paths be used?
>
> Yes. I do something like this:
>
> fromfile = File.expand_path(dll, fromdir)
> tofile = File.expand_path(File.basename(dll), todir)

So can I use this to bundle a Windows XP manifest file?
(it's basically some metadata in XML format that tells Windows XP to
use the modern look & feel)
The thing is, I need the file (say... rubyw.exe.manifest) to reside in
the same directory as rubyw.exe.

keep up with the good work !!

vruz


Erik Veenstra

1/16/2005 8:42:00 PM

0

On Mon, 17 Jan 2005 04:56:32 +0900, vruz wrote:

> fromfile = File.expand_path(dll, fromdir)
> tofile = File.expand_path(File.basename(dll), todir)
>
> So can I use this to bundle a Windows XP manifest file? (it's
> basically some metadata in XML format that tells Windows XP
> to use the modern look & feel)
>
> The thing is, I need the file (say... rubyw.exe.manifest) to
> reside in the same directory as rubyw.exe.

All files in RUBYSCRIPT2EXE_DLLS are copied to the directory in
which rubyw.exe resides (todir). So, by accident: yes.

But you could as well try it and let us know...

> keep up with the good work !!

I'll try...

gegroet,
Erik V.