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
5
votes
2 answers

Ocra throws errors when packing an script

SCENARIO I've installed the Ruby 2.1.5 (x64) package then I installed the Ocra gem successfully: gem install ocra Fetching: ocra-1.3.3.gem (100%) Successfully installed ocra-1.3.3 Parsing documentation for ocra-1.3.3 Installing ri documentation…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
4
votes
2 answers

Can't run exes made with ocra -- FATAL ERROR: Failed to create process

I'm trying to package a Ruby program as an .exe on a Windows computer using OCRA. When I tried to use it to create the executable for my program, it threw a weird error at runtime. I tried it with a simple Hello World program, and the error…
Piccolo
  • 1,612
  • 4
  • 22
  • 38
4
votes
2 answers

Ocra generated exe doesn't accepts arguments

am building .exe using ocra like this ocra testing.rb -- sample here am passing ''sample'' as argument to the below code and building an exe require "selenium-webdriver" $var = ARGV[0] driver = Selenium::WebDriver.for :chrome wait =…
4
votes
1 answer

database setup for ocra compiled rails app

I'm trying to package a rails (3.2) app to run on a windows machine and I'm using OCRA to 'compile' the app into an exe. After repeatedly banging my head on my desk I've managed to get the app to compile and run, but I have one problem remaining;…
Sujimichi
  • 466
  • 7
  • 16
4
votes
2 answers

Bundling RMagick with Ocra

I'm trying to create a portable version of a Ruby script with Ocra. The script depends upon rmagick which requires ImageMagick to be installed as well. The produced executable works on my computer but it fails on every other computer unless the end…
Blender
  • 289,723
  • 53
  • 439
  • 496
3
votes
0 answers

Unable to create stand-alone program using Ruby/Tk with ocra

I'm having problems creating a stand-alone program with ocra using Ruby/Tk. First of all, here's a simple test program: require 'tk' hello = TkRoot.new do title "Test" minsize(100, 40) end TkLabel.new(hello) do text "Tk version is…
varro
  • 2,382
  • 2
  • 16
  • 24
3
votes
1 answer

Ruby Savon Gem Invalid HTTPI Adapter

I am using savon ruby gem 2.4.0 on ruby 2.0.0 to call some wsdl web service and everything runs perfectly but if fails after compiling it as an .exe with ocra 1.3.1. Invalid HTTPI adapter: [:httpclient, :curb, :em_http, :excon, :net_http,…
Maverick
  • 1,293
  • 1
  • 19
  • 39
3
votes
2 answers

Ruby, Tk and Ocra - very slow startup

I'd like to deploy my Ruby application as an .exe file, for windows users. The application uses Tk for the GUI part. Since I simply couldn't manage to succeed with rubyscript2exe I opted for ocra. Ocra works fine and builds a reasonable sized .exe.…
ndbd
  • 2,417
  • 3
  • 23
  • 32
2
votes
3 answers

Ruby compile with ocra error - libssp-0.dll not found

I'm trying to compile a simple reverse TCP shell written in ruby with ocra. The code is pretty simple: #!/usr/bin/env ruby require 'socket' require 'open3' #Remote Host IP RHOST = "192.168.197.23" #Remote Host Port PORT = "6969" #Tries to connect…
FyXs_Xeno
  • 73
  • 1
  • 1
  • 5
2
votes
1 answer

What OCRASuite value uses 'Protectimus' in OATH Challenge-Response Algorithm?

I have problem with OCRA generation, the client and server need to agree on one or two values of OCRASuite but I can't find any information about OCRASuite on official PROTECTIMUS site.
Waka Waka
  • 95
  • 1
  • 7
2
votes
1 answer

Cmd pop up while running rubyw or an exe built with ocra

After this: ruby executable won't start, Now i have another issue with the following simple script: require 'tk' require 'tkextlib/tile' root = TkRoot.new() button = Tk::Tile::TButton.new(root) {text "Hello World"}.grid button.command…
lucaortis
  • 430
  • 2
  • 11
2
votes
1 answer

Ruby executable won't start on Win10 and Win7

I wrote a ruby application with Tk, and everything is fine, no errors or such. So i made an exe with Ocra and i had some problems at the start but then i solved, Ocra made the exe with no errors and also when it let's you try your script before…
lucaortis
  • 430
  • 2
  • 11
2
votes
1 answer

How can I sign an application packaged by OCRA and Inno Setup?

I am using the following command to have OCRA build an installer using Inno Setup: ocra bin/rails . --output fvc.exe --add-all-core --gemfile Gemfile --no-dep-run --gem-full …
2
votes
1 answer

Decrease load time for ruby app built on gtk2 and ocra

Have a small example pasted down which launches a system tray icon using gtk2 gem. #!/usr/bin/env ruby # encoding: UTF-8 require…
Supersonic
  • 430
  • 1
  • 11
  • 35
2
votes
1 answer

gem ocra generates huge files

I created a simple ruby script require 'gtk3' def destroy( widget ) Gtk.main_quit end Gtk.init window = Gtk::Window.new :toplevel window.set_title( "helloworld.rb" ) window.set_border_width( 10 ) window.signal_connect( "delete_event" ) { …
user4518075
1
2 3 4 5