I am using rubyscript2exe to wrap an application. The problem is that
the files that are external to the ruby script are not getting wrapped
into the exe file. I think I need to create a RBA file first and then
wrap it using rubyscript2exe. Any suggestions?
I am using rubyscript2exe to wrap an application. The problem is that
the files that are external to the ruby script are not getting wrapped
into the exe file. I think I need to create a RBA file first and then
wrap it using rubyscript2exe. Any suggestions?
Are you certain that your program, when you run it with rubyscript2exe,
requires every library that it will eventually need?
Actual my problem is a bit more simple. I replaced the default Tk icon
with one I created. But when I wrap the application into an exe, the
exe version is dependent on the external icon file. If I remove the
icon file, my exe application will no longer run. I want to be able to
wrap the icon file along with the rest of the application.
Actual my problem is a bit more simple. I replaced the default Tk icon
with one I created. But when I wrap the application into an exe, the
exe version is dependent on the external icon file. If I remove the
icon file, my exe application will no longer run. I want to be able to
wrap the icon file along with the rest of the application.
Sorry, I assumed you were talking about .rb files.
IIRC, you can use tar2rubyscript (from the same source as
rubyscript2exe) to wrap up non-ruby files.
Hi David,
When i use this method
RUBYSCRIPT2EXE.bin = [“my_logo.ico”]
What do I use as a reference to the Icon.
root = TkRoot.new
root.iconbitmap= ?
…on a whim I tried
root.iconbitmap = RUBYSCRIPT2EXE.bin.last
which runs as a ruby script but not after I wrap it as an exe
But as you might assume from the method name, RUBYSCRIPT2EXE.appdir
infact points to the …/app directory.
There is no method that I can see that references the bin directory,
but this is where all the bins and dlls go. Secondly, there is no
mehod for placing a file in the …/app folder, but this is the folder
that RUBYSCRIPT2EXE.appdir points to. The only solution I can come up
with is chopping off the app portion and adding bin
Thats interesting. In Tk, I have to tell the main window where the
my_icon.ico will be at execution time. I would like to know if this is
the norm, or am I taking the long route? You mentioned earlier that
in rubyscript2exe, that wxruby was getting copied twice into the exe,
causing the larger exe file. Do you know of any workarounds?
Thats interesting. In Tk, I have to tell the main window where the
my_icon.ico will be at execution time. I would like to know if this is
the norm, or am I taking the long route? You mentioned earlier that
in rubyscript2exe, that wxruby was getting copied twice into the exe,
causing the larger exe file. Do you know of any workarounds?
After you’ve created the initial (oversize) executable:
Extract the application with ‘application.exe --eee-justextract’
You should now have a file called “app.eee” which is a manifest of
all things that should be bundled into the .exe. Open this file and
delete the line “bin/wxruby.so” (or possibly wxruby.bundle, on OS X)
Repack the executable with ‘eee.exe app.eee newapplication.exe’