Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Christensen
RE: How to include a file on a specific location? [ reply ]  
2010-08-04 14:48
Just recalled this: You can also put the manifest file in your ruby installation directory together with rubyw.exe, and put the path on the command line to ocra:

ruby ..\bin\ocra wxruby_sample.rbw c:\Ruby191\bin\rubyw.exe.manifest

This way, OCRA will know that the file belongs under bin and not src.

By: Lars Christensen
RE: How to include a file on a specific location? [ reply ]  
2010-08-04 14:26
Hi Mathieu,

Not currently possible without hacking ocra. You can try and add something like this in Ocra#build_exe:

sb.createfile(File.join(bindir, rubyexe) + ".manifest", "bin\\" + rubyexe + ".manifest")

near the line that says

sb.createfile(File.join(bindir, rubyexe), "bin\\" + rubyexe)


By: Mathieu Poussin
How to include a file on a specific location? [ reply ]  
2010-08-02 22:37
Hello,
I am trying to use Ocra with a wxRuby application, but to enable the new "Form looks" from Windows XP/Vista/7, I must add a rubyw.exe.manifest file in the same directory than rubyw.exe, is it possible to do this with Ocra ? When I try to include this file, it include it in the src/ directory, and it looks impossible to add it in the bin/ directory..

Thank you