James Tucker
4/13/2008 11:57:00 AM
On 13 Apr 2008, at 04:25, K. wrote:
> I've downloaded rubyscript2exe, and:
>
> $ ruby rubyscript2exe.rb HelloWorld.rb
>
> will create a file called HelloWorld_linux which runs on linux.
>
> The problem is that I'm trying to make a single .exe for windows
> users.
>
> I rm -rf'd the script, and then used ruby gems to install
> rubyscript2exe (although it was stored only on my /var partition and
> had to be moved to my /usr/local/bin) and it produced the same result.
>
If you alternately pack the executable using 7za.exe (from the extras
distribution) and p7zip, you can easily achieve this by compressing
and then:
cp 7za.exe myapp.exe
cat archive.7z >> myapp.exe
or on windows, use copy /b.