Re: LÖVE 0.5.0
Posted: Tue Sep 23, 2008 8:41 pm
I can't figure out how to make it into one .exe. Can you please give more explicit instructions?
Yes, games would still run in love, but users won't have to download it separately.nightvenom wrote:...
Pretty much what im asking is that will we be able to now distribute the games without love as the reader/compiler ?
(standalone )
Code: Select all
@ECHO OFF
SETLOCAL
SET LoveFolder=C:\Program Files\LOVE
SET file=%1
IF NOT (%file:~-6,-1%) == (.love) (
ECHO Not a .love
GOTO END
)
SET dir=%USERPROFILE%\Desktop\%~n1_executable
MKDIR "%dir%"
COPY /B "%LoveFolder%\love.exe"+%1 "%dir%\%~n1.exe"
COPY /B "%LoveFolder%\love.ico" "%dir%\love.ico"
COPY /B "%LoveFolder%\DevIL.dll" "%dir%\DevIL.dll"
COPY /B "%LoveFolder%\ILU.dll" "%dir%\ILU.dll"
COPY /B "%LoveFolder%\msvcp80.dll" "%dir%\msvcp80.dll"
COPY /B "%LoveFolder%\msvcr80.dll" "%dir%\msvcr80.dll"
COPY /B "%LoveFolder%\SDL.dll" "%dir%\SDL.dll"
COPY /B "%LoveFolder%\SDL_mixer.dll" "%dir%\SDL_mixer.dll"
COPY /A "%LoveFolder%\Microsoft.VC80.CRT.manifest" "%dir%\Microsoft.VC80.CRT.manifest"
COPY /A "%LoveFolder%\license.txt" "%dir%\license.txt"
:END
What error? It works fine for meSamPerson12345 wrote:Thanks, but the .exe returns an error once i'm finished running the .bat. Also, what terminal do you mean aqeeliz?
Nice, tyKaze wrote:I made a batch file to automate the above.
Save this as a .bat file then drag whatever .love file you want to use onto it.
Edit: Makes a folder on your desktop.Code: Select all
@ECHO OFF SETLOCAL SET LoveFolder=C:\Program Files\LOVE SET file=%1 IF NOT (%file:~-6,-1%) == (.love) ( ECHO Not a .love GOTO END ) SET dir=%USERPROFILE%\Desktop\%~n1_executable MKDIR "%dir%" COPY /B "%LoveFolder%\love.exe"+%1 "%dir%\%~n1.exe" COPY /B "%LoveFolder%\love.ico" "%dir%\love.ico" COPY /B "%LoveFolder%\DevIL.dll" "%dir%\DevIL.dll" COPY /B "%LoveFolder%\ILU.dll" "%dir%\ILU.dll" COPY /B "%LoveFolder%\msvcp80.dll" "%dir%\msvcp80.dll" COPY /B "%LoveFolder%\msvcr80.dll" "%dir%\msvcr80.dll" COPY /B "%LoveFolder%\SDL.dll" "%dir%\SDL.dll" COPY /B "%LoveFolder%\SDL_mixer.dll" "%dir%\SDL_mixer.dll" COPY /A "%LoveFolder%\Microsoft.VC80.CRT.manifest" "%dir%\Microsoft.VC80.CRT.manifest" COPY /A "%LoveFolder%\license.txt" "%dir%\license.txt" :END
Code: Select all
require "socket"