Page 1 of 2

Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 9:27 am
by nikwin
I have made a very simple love game and am trying to create a windows executable to distribute. So, I zipped everything into a .love file, which runs fine when I try it. I then followed the directions on the wiki http://love2d.org/wiki/Game_Distribution and tried

Code: Select all

copy /B love.exe+archiver.love archiver.exe
, and copied the DLLs into the directory. The problem is that now when I run this executable, it seems to simply run love.exe as the same screen appears. If I do

Code: Select all

archiver.exe archiver.love
or

Code: Select all

love.exe archiver.exe
or even

Code: Select all

archiver.exe archiver.exe
then my game runs without any problems, but if I just try double-clicking the executable or running it from the command line, I just get the love.exe screen. The same happens if I try

Code: Select all

type love.exe archiver.love > archiver.exe
. I am really sorry to ask a question that must have already been resolved, but I cannot find the answer and would really appreciate any advice anyone has.

Re: Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 9:39 am
by nevon
I think bartbes broke binary merging in the latest release.

Re: Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 9:43 am
by BlackBulletIV
I saw a commit in the repo from 4 days ago saying fused games had been fixed, so I think it will be fixed in the next release.

Re: Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 9:47 am
by nikwin
That would explain it. Thank you very much. If this is the case, I suppose that I will just distribute a batch file or something then for the end users.

Re: Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 9:57 am
by BlackBulletIV
Hmmm, that wouldn't look great, but you could. You could also take the current code for boot.lua and boot.lua.h in scripts folder of the repo and replace their contents with 0.7.1's contents of said files, then proceed to compile a custom executable (not really sure whether you're in a position to do that though).

Re: Trying To Make Windows Executable

Posted: Thu Feb 24, 2011 3:37 pm
by bartbes
Yeah.. I'm not quite happy about the situation either..

Re: Trying To Make Windows Executable

Posted: Fri Feb 25, 2011 1:38 am
by Ertain
Curse that dashed option for redistribution.

Re: Trying To Make Windows Executable

Posted: Sat Feb 26, 2011 6:30 pm
by obur
that solved my problem, too, then :)
thanks!

Re: Trying To Make Windows Executable

Posted: Sat Feb 26, 2011 9:12 pm
by rude
nevon wrote:I think bartbes broke binary merging in the latest release.
:ultrashocked: ... gah. I guess we have to release a new version soon, then.

Meanwhile, you can get builds which should include bartbes' fix here: http://love2d.org/builds/

Re: Trying To Make Windows Executable

Posted: Sun Feb 27, 2011 10:36 am
by Boolsheet
rude wrote:[...] which should include bartbes' fix [...]
He's working now on a fix that actually fixes it. :)