TTimo / GtkRadiant

The open source, cross platform level editor for idtech games
http://icculus.org/gtkradiant/
Other
581 stars 152 forks source link

HOWTO producing Debian/Ubuntu packages #678

Open wdoekes opened 2 years ago

wdoekes commented 2 years ago

Hi!

I've done an initial attempt at producing .deb files. I got a bit annoyed that the installs on different machines in my house deviated. Beyond the confusion of having both .q3a/baseq3 and "local game directory" ( installed path, having the binary in different locations as well, makes it hard to maintain.

At https://github.com/wdoekes/gtkradiant-deb I have a Dockerfile and some helper scripts to easily (re)build packages for Debian/Ubuntu. Only tested on Ubuntu/Focal for now, but with minimal effort it should work for other Debian and Ubuntu releases.

There is one patch that is needed to make things work: https://github.com/wdoekes/gtkradiant-deb/blob/main/patches/radiant-paths.patch ( at the time of writing: https://github.com/wdoekes/gtkradiant-deb/blob/fcc9f98ef85552edb2272fb9afd087fd825c0fd8/patches/radiant-paths.patch ) It fixes so arch independent (data) files go in /usr/share/gtkradiant and modules (plugins) go into /usr/lib/XXX/gtkradiant.

(Other patches are not strictly necessary at the moment.)

Feel free to close (or pin). I may come back and file a PR here or there, but no promises. I have some items on my TODO (see readme), but you never know when I'll get to those.

In the mean time, the created .deb files can be found here: https://github.com/wdoekes/gtkradiant-deb/releases/tag/v1.6.6-0wjd0

Cheers, Walter

kungfooman commented 1 year ago

Hey, great work @wdoekes, is this going to allow apt install gtkradiant in future?

wdoekes commented 1 year ago

Not likely -- that would involve Debian or Ubuntu (which I'm not) maintainers to upload these. But you can check back on https://github.com/wdoekes/gtkradiant-deb and see which release I built last.

And if there are fixes that are missing, I'll consider drafting a new release.