I using RUBYSCRIPT2EXE to built an .exe file for my project. After i
install RUBYSCRIPT2EXE gem, but i do not know how to built an .exe file.
Any one can teach me with sample code???
···
--
Posted via http://www.ruby-forum.com/.
I using RUBYSCRIPT2EXE to built an .exe file for my project. After i
install RUBYSCRIPT2EXE gem, but i do not know how to built an .exe file.
Any one can teach me with sample code???
--
Posted via http://www.ruby-forum.com/.
Cool Wong wrote:
I using RUBYSCRIPT2EXE to built an .exe file for my project. After i
install RUBYSCRIPT2EXE gem, but i do not know how to built an .exe file.
Any one can teach me with sample code???
Quick example, on Windows:
Include the following in your script:
require "rubyscript2exe"
exit if RUBYSCRIPT2EXE.is_compiling?
If this is a console app, save your script with a ".rb" extension. If it
is a non-console app, save your script with a ".rbw" extension (ie,
"my_app.rbw").
Open a console/command window and enter:
rubyscript2exe my_app.rbw
Further details here:
http://www.erikveen.dds.nl/rubyscript2exe/index.html#3.1.0
David
--
Posted via http://www.ruby-forum.com/\.
David Mullet wrote:
Cool Wong wrote:
I using RUBYSCRIPT2EXE to built an .exe file for my project. After i
install RUBYSCRIPT2EXE gem, but i do not know how to built an .exe file.
Any one can teach me with sample code???Quick example, on Windows:
Include the following in your script:
require "rubyscript2exe"
exit if RUBYSCRIPT2EXE.is_compiling?If this is a console app, save your script with a ".rb" extension. If it
is a non-console app, save your script with a ".rbw" extension (ie,
"my_app.rbw").Open a console/command window and enter:
rubyscript2exe my_app.rbw
Further details here:
http://www.erikveen.dds.nl/rubyscript2exe/index.html#3.1.0
David
when i write the "require 'rubyscript2exe'", it will be true. but after
i continue the rubyscript2exe, it cannot run and occur error.
[code]
"require 'rubyscript2exe'
RUBYSCRIPT2EXE testing.rb"
[/code]
it shown :"undefined local variable or method `testing' for main:Object
(NameError)"
where i need to correct???
--
Posted via http://www.ruby-forum.com/\.
i can do it already, thank u so much.
--
Posted via http://www.ruby-forum.com/.