make .exe file by rubyscript2exe with no DOS???

L

Luka Lukako

Pat said:
I have fallow this
http://www.ruby-forum.com/topic/84263

I can make file.exe that can run normally by use

new/ is my folder that contain data (image etc..)

and then I want to make it run without DOS I try

It can make .exe file but when I click on it, it nothing happen.. what
I'm doing wrong :'(

Example:
test.rb - It's your file.
and you want test.rb to test.exe yes?

It's easy:
 
P

Pat Kiatchaipipat

my file is many picture and I want to make to exe for run in other
computer so I put all file in '/new' unless It can make only .rb to exe
and can't show picture. I can make .exe now but I will pop up DOS and I
don't want it. I want to know how to do :'(
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pat Kiatchaipipat wrote:
| my file is many picture and I want to make to exe for run in other
| computer so I put all file in '/new' unless It can make only .rb to exe
| and can't show picture. I can make .exe now but I will pop up DOS and I
| don't want it. I want to know how to do :'(
|

http://www.erikveen.dds.nl/rubyscript2exe/index.html#3.1.0

As Luka pointed out, you want the --rubyscript2exe-rubyw switch.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ I imagine bugs and girls have a dim perception that nature played a
cruel trick on them, but they lack the intelligence to really comprehend
the magnitude of it. -- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgWen0ACgkQbtAgaoJTgL+6NACdEUsl4xoZwO9iqcmVFzYHOJS6
5VcAoKDM9ZqypIucaeeDzsMURrLMCkXj
=F1bt
-----END PGP SIGNATURE-----
 
A

Alex Fenton

Pat said:
I try


It can make new.exe but when I run this file. it's nothing happen :'(

Try creating it with --rubyscript2exe-ruby and running in it a DOS box
first to see if it raises an exception.

Also, you should ensure that your script doesn't call "puts" or similar
as this may cause errors with the -rubyw switch, because the output is
closed.

a
 
P

Pat Kiatchaipipat

Alex said:
Try creating it with --rubyscript2exe-ruby and running in it a DOS box
first to see if it raises an exception.

Also, you should ensure that your script doesn't call "puts" or similar
as this may cause errors with the -rubyw switch, because the output is
closed.

a

my code has some "puts" in other files that I require it. I will delete
it and try again. thank you :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top