Page 2 of 2
Re: Any one willing to compile my game for PC
Posted: Wed Jun 30, 2021 6:54 pm
by Andlac028
You can actually make Windows version on Android as you just put concatenates love.exe and yourGame.love
One way you can do it is to install
Termux and use it as Linux shell, so you can download zipped Windows binaries (eg
https://github.com/love2d/love/releases ... -win64.zip), extract it, then execute
Code: Select all
cat love.exe SuperGame.love > SuperGame.exe
(see
https://love2d.org/wiki/Game_Distribution#Linux_/_OS_X) and then just compress it back to .zip, just replace love.exe with your newly created SuperGame.exe
And for other (as Linux), you can always upload yourGame.love and give instructions to install LÖVE and open that downloaded file in it (like
Oh my giraffe
Re: Any one willing to compile my game for PC
Posted: Wed Jun 30, 2021 8:15 pm
by darkfrei
The 7z can open the compiled exe file, it's possible to modify / replace main.lua inside of it.
https://github.com/darkfrei/love2d-lua- ... xe-example
Re: Any one willing to compile my game for PC
Posted: Wed Jun 30, 2021 11:14 pm
by togFox
it's about four clicks for Windows - hence it's easy to volunteer.
I actually suspect it will be harder than that because it might not compile the first time.
Re: Any one willing to compile my game for PC
Posted: Tue Jul 06, 2021 6:32 am
by Andlac028
Or concatenate files using Lua (not tested, might not work):
Code: Select all
local exefile = io.open('path/to/love.exe', 'rb')
local lovefile = io.open('path/to/yourGame.love', 'rb')
local outfile = io.open('path/to/yourGame.exe', 'wb')
outfile:write(exefile:read('*a') .. lovefile:read('*a'))
exefile:close()
lovefile:close()
outfile:close()
Re: Any one willing to compile my game for PC
Posted: Sat Jul 31, 2021 7:04 pm
by wolf
Some tips ...
I use a Mac, but I am able to create a valid Windows version of my game using VMWare. Microsoft offers free VMWare images of Windows on their website:
https://developer.microsoft.com/en-us/w ... -machines/ You don't need a license key to run these virtual machine images, but they expire after a month or so.
Most of the work to create a Windows version of a game can actually be done on both macOS or Linux, the instructions are on the LÖVE wiki:
https://love2d.org/wiki/Game_Distribution
In my Windows Virtual Machine I install ResourceHacker for updating the icon and some other game metadata:
http://www.angusj.com/resourcehacker/
For the purpose of replacing icon & app metadata, I use ResourceHacker scripts.