[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Pat Kiatchaipipat

4/28/2008 3:52:00 PM

I have fallow this
http://www.ruby-...t...

I can make file.exe that can run normally by use
>rubyscript2exe new/

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

and then I want to make it run without DOS I try
>rubyscript2exe new/ --rubyscript2exe-rubyw

It can make .exe file but when I click on it, it nothing happen.. what
I'm doing wrong :'(
--
Posted via http://www.ruby-....

6 Answers

luka luka

4/28/2008 7:12:00 PM

0

Pat Kiatchaipipat wrote:
> I have fallow this
> http://www.ruby-...t...
>
> I can make file.exe that can run normally by use
>>rubyscript2exe new/
>
> new/ is my folder that contain data (image etc..)
>
> and then I want to make it run without DOS I try
>>rubyscript2exe new/ --rubyscript2exe-rubyw
>
> 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:
> rubyscript2exe test.rb test.exe
--
Posted via http://www.ruby-....

Pat Kiatchaipipat

4/28/2008 11:48:00 PM

0

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 :'(

--
Posted via http://www.ruby-....

Phillip Gawlowski

4/29/2008 1:32:00 AM

0

-----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....

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....

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

Pat Kiatchaipipat

4/29/2008 6:23:00 AM

0

I try

>rubyscript2exe new/ --rubyscript2exe-rubyw

It can make new.exe but when I run this file. it's nothing happen :'(
--
Posted via http://www.ruby-....

Alex Fenton

4/29/2008 7:50:00 AM

0

Pat Kiatchaipipat wrote:
> I try
>
>> rubyscript2exe new/ --rubyscript2exe-rubyw
>
> 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

Pat Kiatchaipipat

4/29/2008 9:37:00 AM

0

Alex Fenton wrote:
> Pat Kiatchaipipat wrote:
>> I try
>>
>>> rubyscript2exe new/ --rubyscript2exe-rubyw
>>
>> 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

my code has some "puts" in other files that I require it. I will delete
it and try again. thank you :)
--
Posted via http://www.ruby-....