Love2d Compiler(Distributor) [windows]

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: [windows]Love2d Compiler v3.0

Post by Nixola »

Could you make a version that compiles for Linux?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
dizante
Prole
Posts: 15
Joined: Wed Sep 14, 2011 11:19 am
Location: germany
Contact:

Re: [windows]Love2d Compiler v3.0

Post by dizante »

Nixola wrote:Could you make a version that compiles for Linux?
i will try to make it. I can't promise anything. :nyu:
User avatar
lots_of_birds
Prole
Posts: 13
Joined: Sun Dec 11, 2011 12:09 pm

Re: [windows]Love2d Compiler v3.0

Post by lots_of_birds »

This would be awesome :awesome:
User avatar
dizante
Prole
Posts: 15
Joined: Wed Sep 14, 2011 11:19 am
Location: germany
Contact:

Re: [windows]Love2d Compiler v3.0

Post by dizante »

I asked a friend of mine to help me on the linux version and he offered to help me :) you can find any news about the compiler and any new creations into my website's blog :)
Patooty
Prole
Posts: 5
Joined: Wed Jan 18, 2012 5:26 pm

Re: [windows]Love2d Compiler v3.0

Post by Patooty »

I'm having a problem where after I use the compiler, all of the dll files are generated, but the exe isn't. How do I go about diagnosing the problem?
koopatroopa
Prole
Posts: 6
Joined: Thu Dec 08, 2011 11:35 pm

Re: Love2d Compiler(Distributor) v2.0 [Windows]

Post by koopatroopa »

Does it create an installed file on the computer? This would be nice for distributing out side of love.
It would copy the .exe to programfiles and then creat a shortcut, not too difficult I imagin
User avatar
dizante
Prole
Posts: 15
Joined: Wed Sep 14, 2011 11:19 am
Location: germany
Contact:

Re: [windows]Love2d Compiler v3.0

Post by dizante »

Did you selected both .love and .exe files with the sequence the software asks? Although I am working on a simplier compiler now, ill post it soon. Also for those who search older versions all are into the free tools section on my website ^^
User avatar
dizante
Prole
Posts: 15
Joined: Wed Sep 14, 2011 11:19 am
Location: germany
Contact:

[Update]Love2d Compiler v3.1

Post by dizante »

Image
An update of v3 to v3.1 beacuse some users got confused with the three dialogs. Now the only thing you have to do is select game.love file and the folder to distribute the files. Plus added update feature to check for updates without needed to check for my posts all the time. :) In the meantime i am working on an improved version of love2d compiler, you can see the new version once it will be available through the new updated compiler v3.1 by clicking the "Check for new version" button

Download the updated tool:
http://www.damnbunny.net
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Love2d Compiler(Distributor) [windows]

Post by josefnpat »

I would also very much like a deb/rpm/install.sh/make for linux.
:)
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Love2d Compiler(Distributor) [windows]

Post by vrld »

My Makefile that tests for syntax errors and can build binaries for windows and osx:

Code: Select all

love=${HOME}/.bin/love # path to love binary
zip=/usr/bin/zip
luac=/usr/bin/luac

builddir=build
distdir=dist

windir=~/Downloads/love-win-x86
osxapp=~/Downloads/love.0.8.app

game=GAMENAME
sources=*.lua **/*.lua
res=RESOURCES, e.g. img/*.png

.PHONY : run test love clean win

run : test
    $(love) .

test :
    $(luac) -p $(sources)

dist : love win osx

love : $(builddir)/$(game).love
    cp $(builddir)/$(game).love $(distdir)/$(game).love

osx : $(builddir)/$(game).app
    cd $(builddir); \
        zip -9 -q -r ../$(distdir)/$(game).osx.zip $(game).app

win : $(builddir)/$(game).exe
    cd $(builddir); \
        cp $(windir)/*.dll .; \
        zip -q ../$(distdir)/$(game).win.zip $(game).exe *.dll; \
        rm *.dll

$(builddir)/$(game).app : $(builddir)/$(game).love
    cp -a $(osxapp) $(builddir)/$(game).app
    cp $(builddir)/$(game).love $(builddir)/$(game).app/Contents/Resources/

$(builddir)/$(game).exe : $(builddir)/$(game).love
    cat $(windir)/love.exe $(builddir)/$(game).love > $(builddir)/$(game).exe

$(builddir)/$(game).love : $(sources) $(res)
    mkdir -p $(builddir)
    $(zip) $(builddir)/$(game).love $(sources) $(res)

clean :
    rm -rf $(builddir)/* $(distdir)/*
Probably a little more complicated than it should be, but it does the job.
Usage:
  • make run: Run the game
  • make test: Syntax-check
  • make love: make love.
  • make dist: build distribution packages.
Edit: I think I misunderstood your request. :?
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

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