Questions tagged [ocra]

OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running executable that contains the Ruby interpreter, your source code and any additionally needed ruby libraries or DLL.

OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running executable that contains the Ruby interpreter, your source code and any additionally needed ruby libraries or DLL.

63 questions
0
votes
0 answers

OCRA compiled Ruby Watir Webdriver .exe "says it doesnt have a valid url"

I am compiling a Ruby script as a test to run independent of needing any dependencies, there are two lines of code that are compiled with OCRA --windows abc.rb The file does not run on other computers, and I cannot discover why. Any suggestions…
user5758156
0
votes
1 answer

Ruby Ocra doesn't change the working directory

I have these lines on top of my Ruby code, and tried multiple combinations but none of them have worked. $:.unshift File.dirname($0) Dir.chdir(File.dirname($0)) I have a config file that is in the same directory than the exe created by Ocra. The…
aksu
  • 5,221
  • 5
  • 24
  • 39
0
votes
1 answer

how to reduce amount of time to open ruby executable that contains a GUI?

I've been using ocra to convert my ruby files to a window executable, but I notice that it takes a very long time if I use ruby GUI like fxruby or green_shoes. Is there any way to reduce the amount of time it takes for the program to pop up? My…
Lena
  • 1
  • 1
0
votes
2 answers

Can't generate ruby exe using ocra due to ARGV[0]

Running the command ocra script.rb --no-autoload --no-enc --add-all-core gives me the error initialize: can't convert nil into String (TypeError) for the following line: doc = Nokogiri::XML(File.open(ARGV[0])) Whats going on here? I want to build…
Slack Groverglow
  • 846
  • 7
  • 25
0
votes
0 answers

*.exe from ruby file

i'm using OCRA to make an exe from my ruby file. The .exe creation works without any error, but when i try to launch it, i got this : C:/Users/XX/AppData/Local/Temp/ocr81CD.tmp/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir': ERROR: Failed to…
Sokrah
  • 105
  • 1
  • 1
  • 11
0
votes
1 answer

Ruby -- Get User Input outside of the Command Line using Ocra

So I have a very simple single file script: puts "Enter the file name" file = gets.chomp puts "What do you want to replace it with?" replace = gets.chomp which then changes some files with the user-inputs. I packaged it up with Ocra, but I was…
Brewster
  • 195
  • 1
  • 1
  • 9
0
votes
1 answer

How can I set my uninstall icon to be different than my install icon using Releasy / Ocra / InnoSetup

I am building an installer for a Ruby application using releasy. It creates an installer that creates a windows executable(i.e. launcher) for the application and one for the uninstaller. I would like to use different icons for the launcher and the…
Huliax
  • 1,489
  • 3
  • 15
  • 27
0
votes
1 answer

Hiding console when running an Ocra executable?

I have successfully made an executable using Ruby's Ocra gem, however, when I run the executable the console displays along with my program. Is there any way to hide the console on launch? Any help is appreciated! Thanks!
Kameron Kincade
  • 514
  • 1
  • 7
  • 18
0
votes
0 answers

Making RUBY Ocra work for library that requires include module

I have created a ruby executable in windows using OCRA. i am using it for few years now and works well no complains with it. but today when i created and distributed a exe that contain Include module in the code it failed at the include module…
user2300908
  • 165
  • 1
  • 1
  • 12
0
votes
1 answer

Setting filepaths inside your .rb file when converted into an exe with ocra

I've had a lot of trouble getting one my wxruby scripts to use an image file I included in the exe with ocra. If I didn't have the original image file in the same directory as the exe, the exe wouldn't find the image. shape =…
Lifeweaver
  • 986
  • 8
  • 29
0
votes
2 answers

Compile ruby script with dependencies on other classes

have a problem with compressing my script. I have a main.rb and some classes in subfolders like Subfolder/Class.rb In my main.rb, I have the Classes declared like that: require './Subfolder/Class.rb' When I just run my main script, it works. Also…
madmax
  • 1,803
  • 3
  • 25
  • 50
0
votes
1 answer

OCRA fails to build even the simplest exe

I am running a fresh install of Windows, Ruby 1.9.3p327, and and Ocra 1.3.0. test.rb: puts 'hi' ocra test.rb returns: === Loading script to check dependencies hi C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:467: Use RbConfig instead of…
Virtuoso
  • 908
  • 1
  • 8
  • 14
0
votes
1 answer

How to get an ocra application to be accepted by antiviruses

Alright, so judging by the title (if you practice Ruby), you should know what Ocra is. If you don't, here's a brief explanation:Ocra is a command added to the command prompt in order to convert ruby programs to executable. So .rb to .exe. In order…
lakam99
  • 575
  • 4
  • 9
  • 24
-1
votes
1 answer

OCRA cant convert ruby to exe

the code executed perfectly, however, it's taking forever to process this simple code require 'watir' browser = Watir::Browser.new :firefox browser.goto "https://google.com" and this is the command line logs for the OCRA process, i had to exit the…
-1
votes
1 answer

Ruby : my program creates .exe but can't without ocra installed in another computer

Ocra is a ruby gem "transforming" ruby files source code to a .exe file, so any user without ruby installed can launch the program with that generated file. I'm creating a game editor, so I need a way to create an executable when the user wants…
Nat
  • 119
  • 5