Any one willing to compile my game for PC/Android

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Any one willing to compile my game for PC

Post by Andlac028 »

You can actually make Windows version on Android as you just put concatenates love.exe and yourGame.love :awesome:
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
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: Any one willing to compile my game for PC

Post 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
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: Any one willing to compile my game for PC

Post 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.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Any one willing to compile my game for PC

Post 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()
wolf
Prole
Posts: 14
Joined: Tue Jan 12, 2021 10:24 am

Re: Any one willing to compile my game for PC

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests