I'm Felipe Budinich, a wanna be game designer. I've been lurking your forums for a long time now (over a year or so), and decided to create an account just now, as i've finally decided to step up and learn how to use the LÖVE framework.
I ended up picking up LÖVE after I spent a couple of months struggling with C++, trying to cook up something with SDL, but it proved to be too low level for my experience (that is: no experience at all), and i'm greatly pleased with my results so far (took me less than a day to have stuff happening on the screen, and the event handling rocks).
Yesterday, as i was doing some testing, i got really tired of manually zipping my project, and renaming it, then i remembered this post:
So i tought "that's a really good idea (and the name is just awesome)", it's a shame that the batch file or code wasn't posted so I went ahead and (blatantly stole the name then I) made a couple of batch files that i'll share here:Kaze wrote:I just drag my game folders onto my batch script, "Make LOVE.bat".
Test_Love.bat
Code: Select all
@echo off
"%PROGRAMFILES%\LOVE\love" .
The batch files below need you to have 7z installed. I tried really hard to use the tools that come with windows by default, but zipfldr.dll is not properly documented, sorry.
Make_Love.bat
Code: Select all
@echo off
erase made_with_.love
"%PROGRAMFILES%\7-Zip\7z" a -y -ssc -mx0 -tzip made_with_.love
Spread_Love.bat
Code: Select all
@echo off
for %%X in (*.love) do mkdir %%~nX & copy /b love.exe+%%X %%~nX\%%~nX.exe & copy SDL.dll %%~nX\ & copy openal32.dll %%~nX\ & copy DevIL.dll %%~nX\ & "%PROGRAMFILES%\7-Zip\7z" a -y -ssc -mx5 %%~nX\%%~nX.zip %%~nX\
pause
For each .love file it will create a folder named after it, then inside that folder it will create a copy of that .love file merged with love.exe (the destination file will be named after the .love file), then it will create a copy of the needed libraries inside the folder, and finally it will create a zip file named after the .love file with all the folder contents.
So, if you are lazy like I am, and you can't be bothered to open a text editor, copy paste the code, then save as a .bat file, here are the download links:
test_love_001.bat = http://dl.dropbox.com/u/1043484/love/test_love_001.bat
make_love_003.bat = http://dl.dropbox.com/u/1043484/love/make_love_003.bat
spread_love_002.bat = http://dl.dropbox.com/u/1043484/love/sp ... ve_002.bat
PS: I suck at BBCode so i'll just write the link address there :-p
PS2: Removed one unnecessary step from make_love.bat
PS3: When i removed the unnecessary step on make_love, i forgot to add a necessary switch. Already fixed.