Distribution, lets tackle this thing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Distribution, lets tackle this thing

Post by nevon »

thelinx wrote:Great guide, nevon. One error, though:
nevon wrote: Makefile

Code: Select all

uninstall:
	$(RM) $(DESTDIR)/usr/lib/omgwords/appname.love
Whoops! Fixed now.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Distribution, lets tackle this thing

Post by nevon »

Building standalone debian packages

So, most of the time you may not care to create a "proper" package or uploading it to a PPA. So in case you want a 2 minute packaging guide, here it is. This way of creating packages will probably make real packagers cry in pain, so I'm sorry for that, but it's your own damned fault for making it so complex. :(

In this version of the guide, we want to create a directory that exactly reflects how the final package should look. Here's my example:

Code: Select all

PackageContainerDir
├── DEBIAN
│   └── control
└── usr
    ├── local
    │   ├── bin
    │   │   └── launcher
    │   └── games
    │       └── appname.love
    └── share
        ├── applications
        │   └── appname.desktop
        └── icons
            └── hicolor
                ├── 22x22
                │   └── apps
                │       └── iconname.png
                ├── 24x24
                │   └── apps
                │       └── iconname.png
                ├── 32x32
                │   └── apps
                │       └── iconname.png
                ├── 48x48
                │   └── apps
                │       └── iconname.png
                └── scalable
                    └── apps
                        └── iconname.svg
I'm not going to go into what the files need to contain, because they'll look almost exactly the same as in the other guide. The only difference would be the paths. You can also include the other files from the other example (the ones in the debian directory) if you want, but this is the bare minimum.

Once you have this all set up, all you need to do is run the following command:

Code: Select all

dpkg-deb --build PackageContainerDir
That's it. You now have a debian package called PackageContainerDir.deb wherever you executed the command.

Also, I deserve all your karma.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Distribution, lets tackle this thing

Post by bartbes »

I updated my ppa script quite a bit, I'll look into backporting the changes.. soonish.
User avatar
slime
Solid Snayke
Posts: 2932
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Distribution, lets tackle this thing

Post by slime »

User avatar
Davidobot
Party member
Posts: 1213
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

Re: Distribution, lets tackle this thing

Post by Davidobot »

Can someone link me a download for Windows Installer?
My projects: Raycaster, love.js v11.3 port
itch page: link
My website: link
My library: LovelyMoon
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Distribution, lets tackle this thing

Post by Nixola »

Windows LÖVE installer? Here it is
0.8.0 x86 and 0.8.0 x64
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Distribution, lets tackle this thing

Post by nevon »

Nixola wrote:Windows LÖVE installer? Here it is
0.8.0 x86 and 0.8.0 x64
I think he was referring to this. I think this may be useful.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 22 guests