From: Jayson Williams Date: 2007-09-20T00:59:35+09:00 Subject: Re: How do I create an RBA Ruby Archive File? I think I have figured out what the problem has been. RUBYSCRIPT2EXE.bin=['my_icon.ico'] results in the file being placed in the .../bin directory at execution time (makes sense). The documentation says that RUBYSCRIPT2EXE.appdir points to the .../bin directory. require "rubyscript2exe" RUBYSCRIPT2EXE.appdir ===> C:/bin RUBYSCRIPT2EXE.appdir("README") ===> C:/bin/README RUBYSCRIPT2EXE.appdir{Dir.pwd} ===> C:/bin 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 binDir = RUBYSCRIPT2EXE.appdir 3.times{binDir.chop!} binDir += 'bin' Am I overthinking this. Seems like there must be a better way Jayson On 9/19/07, Jano Svitok wrote: > On 9/19/07, Jayson Williams wrote: > > 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 > > > > Jayson > > Either use relative paths to your source file (i.e. to __FILE__) or > try stuff mentioned under g) in the erik's page. > > Jano > >