Page 1 of 1

[Linux/Flatpak] Flatpak builds (now on flathub)

Posted: Wed Aug 10, 2016 23:51
by est31
Note: Flathub hosts an up to date version of minetest as `net.minetest.Minetest`. You can install it using

Code: Select all

flatpak install flathub net.minetest.Minetest
as long as you already have flathub enabled. The information below is mostly historical. Visit https://flathub.org/apps/details/net.minetest.Minetest for more information.
[/b][/i]

Builds of Minetest for the Linux cross distro flatpak package format.
No deps required except flatpak (and the Freedesktop platform).

Download Minetest-0.4.15.flatpak

Installation of the freedesktop platform:

Code: Select all

wget https://sdk.gnome.org/keys/gnome-sdk.gpg
flatpak remote-add --user --gpg-import=gnome-sdk.gpg gnome https://sdk.gnome.org/repo/
flatpak --user install gnome org.freedesktop.Platform 1.4
Installation works like:

Code: Select all

flatpak install --user --bundle Minetest-0.4.15.flatpak
Then you can run it using:

Code: Select all

flatpak run net.minetest.app
The build script is at: https://github.com/est31/minetest-flatpak

This is semi-official as right now I am experimenting a bit and trying to find out how to do stuff in the best way. Long term goal is an official minetest flatpak repo and attaching the flatpak files to the releases like we do already with windows builds.

Where do I find mods, worlds, and games?

Code: Select all

~/.var/app/net.minetest.Minetest/.minetest/mods/

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Sun Oct 16, 2016 16:31
by ClaudiusMinimus
Thank you for your excellent work.
Your instructions were perfect!
I look forward to you making a ppa available.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Thu Dec 29, 2016 22:20
by ClaudiusMinimus
Will there be an updated version for 0.4.15?

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Wed Jan 04, 2017 21:41
by est31
Yes, I'll try to make an update for 0.4.15 next week.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Thu Jan 05, 2017 08:48
by ClaudiusMinimus
est31 wrote:Yes, I'll try to make an update for 0.4.15 next week.
Thank you, my server admin is asking me to update my client and snap does not work on LinuxMint 18.1

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Fri Jan 06, 2017 17:39
by Minetestforfun
Hi,

Good work est31, i tried your flatpak of Minetest 0.4.14 and it's good to see this kind of thing :)

For the installation : no problem

But when the game is running, after several minutes im disconnecting and can see this error message in the logs :

Code: Select all

2017-01-06 18:36:41: ERROR[AsyncWorker-0]: servers.minetest.net/list?proto_version_min=13&proto_version_max=27 not found (Timeout was reached) (response code 200)
I never saw this message before, and I don't see it when im running from my self source compiled 0.4.14 stable version of Minetest.

I hope it can help you to improve your flatpak :)

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Sun Jan 08, 2017 19:21
by est31
Okay, now the flatpak was updated to the Minetest 0.4.15 release. Enjoy!
But when the game is running, after several minutes im disconnecting and can see this error message in the logs :
This looks like a network problem, but in theory it should have the same network quality in your self compiled source vs. the flatpak build.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Mon Jan 09, 2017 09:18
by ClaudiusMinimus
When I run the following I get the error shown

Code: Select all

flatpak install --user --bundle Minetest-0.4.15.flatpak
error: net.minetest.app/x86_64/master already installed
How do I upgrade flatpak 0.4.14 to 0.4.15?

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Mon Jan 09, 2017 18:42
by ClaudiusMinimus
I tried running the following and everything else I parse out of the Flatpak docs, but I am unable to upgrade my 0.4.14 install.

Code: Select all

flatpak update net.minetest.app
Looking for updates...
error: net.minetest.app not installed
I then tried to download and install the new version, but the following was returned:

Code: Select all

$ flatpak install --user --bundle Minetest-0.4.15.flatpak
error: net.minetest.app/x86_64/master already installed
Error in Download Path
v1.0 in the path should be changed to v2.0

Code: Select all

wget https://github.com/est31/minetest-flatpak/releases/download/v1.0/Minetest-0.4.15.flatpak
Corrected path

Code: Select all

wget https://github.com/est31/minetest-flatpak/releases/download/v2.0/Minetest-0.4.15.flatpak
Rather than poking in the dark, I will wait for your upgrade instructions.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Mon Jan 09, 2017 19:48
by est31
v1.0 in the path should be changed to v2.0
Thanks! I'll change it.

You will have to do "flatpak uninstall --user net.minetest.app" before installing the new version. The settings should be preserved, as they reside in ~/.minetest.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Mon Jan 09, 2017 20:17
by mahmutelmas06
Flatpack support is wonderfull idea.

Could you also provide http://appimage.org/ support.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Mon Jan 09, 2017 21:05
by ClaudiusMinimus
est31 wrote:
v1.0 in the path should be changed to v2.0
Thanks! I'll change it.

You will have to do "flatpak uninstall --user net.minetest.app" before installing the new version. The settings should be preserved, as they reside in ~/.minetest.
Thanks, that did it. I had tried something very similar, but did not have the syntax quite right.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Thu Mar 09, 2017 19:11
by ClaudiusMinimus
Is there a way to utilize the Minetest daily build ppa with your flatpak script?

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Sun Mar 12, 2017 07:43
by est31
The ppa itself can't be utilized, as its a different technology, but you can set the minetest and minetest_game repos to a different commit. This though will require updating some hashes, etc. It has to be repeated each time you will want to get an update, so is not the most simple way to update.

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Fri Apr 21, 2017 15:00
by ClaudiusMinimus
Thank you for all you have done to make Minetest a better game and thank you for making this the Flatpak build. I hope you will be able to find someone to turn this project over to so we can continue to have the latest release of Minetest. Regardless, I wish you the best in your new ventures.
CM

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Sun Jul 23, 2017 21:35
by est31
Today I've found out that minetest has a presence on flathub. See this link: https://github.com/flathub/net.minetest.Minetest

It seems to be maintained by some endless OS people.

You can remove my remote (not sure how that works...) and then add the flathub remote, like its described for Endless OS here:

https://community.endlessos.com/t/how-t ... ss-os/2493

Re: [Linux/Flatpak] Flatpak preview builds

Posted: Tue Mar 05, 2019 06:39
by sofar
I've posted the 5.0.0 release to flathub. Hopefully it will get merged relatively quickly. I'll continue to look after Minetest on Flathub together with the folks already there.

Re: [Linux/Flatpak] Flatpak builds (now on flathub)

Posted: Sun Mar 10, 2019 08:32
by xeranas
Does global mod configuration differ for flatpak builds?
My local mods currently at location ~/.minetest/mods but none of them shown as installed from the game menu. Same thing with worlds. I'm new with flatpak concept and I wonder if I missing something obvious.

Re: [Linux/Flatpak] Flatpak builds (now on flathub)

Posted: Sun Mar 10, 2019 18:13
by sofar
xeranas wrote:Does global mod configuration differ for flatpak builds?
My local mods currently at location ~/.minetest/mods but none of them shown as installed from the game menu. Same thing with worlds. I'm new with flatpak concept and I wonder if I missing something obvious.

Code: Select all

~/.var/app/net.minetest.Minetest/.minetest
Yes, flatpak doesn't share the data directory. This has pros and cons. I like the separation myself as it allows me to have a fully independent version of minetest that doesn't use or see development versions of mods and games, but it may be confusing for ordinary users.

You can however just copy your stuff into the flatpak folders. And installing online content works, so it's really easy to get mods.