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

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

Postby est31 » Wed Aug 10, 2016 11:51 pm

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.


The below information is outdated, but can be used to get older releases from the original flatpak builds.

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

Download Minetest-0.4.16.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/
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Sun Oct 16, 2016 4:31 pm

Thank you for your excellent work.
Your instructions were perfect!
I look forward to you making a ppa available.
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Thu Dec 29, 2016 10:20 pm

Will there be an updated version for 0.4.15?
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby est31 » Wed Jan 04, 2017 9:41 pm

Yes, I'll try to make an update for 0.4.15 next week.
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Thu Jan 05, 2017 8:48 am

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
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby Minetestforfun » Fri Jan 06, 2017 5:39 pm

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 :)
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 2:09 pm
GitHub: Darcidride
In-game: Darcidride + MinetestForFun

Re: [Linux/Flatpak] Flatpak preview builds

Postby est31 » Sun Jan 08, 2017 7:21 pm

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.
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Mon Jan 09, 2017 9:18 am

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?
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Mon Jan 09, 2017 6:42 pm

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.
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby est31 » Mon Jan 09, 2017 7:48 pm

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.
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby mahmutelmas06 » Mon Jan 09, 2017 8:17 pm

Flatpack support is wonderfull idea.

Could you also provide http://appimage.org/ support.
mahmutelmas06
Member
 
Posts: 367
Joined: Mon Mar 02, 2015 1:10 pm
GitHub: mahmutelmas06
In-game: masum

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Mon Jan 09, 2017 9:05 pm

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.
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Thu Mar 09, 2017 7:11 pm

Is there a way to utilize the Minetest daily build ppa with your flatpak script?
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby est31 » Sun Mar 12, 2017 7:43 am

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.
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby ClaudiusMinimus » Fri Apr 21, 2017 3:00 pm

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
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 5:46 pm
GitHub: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: [Linux/Flatpak] Flatpak preview builds

Postby est31 » Sun Jul 23, 2017 9:35 pm

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
est31
Developer
 
Posts: 173
Joined: Mon Dec 29, 2014 1:49 am

Re: [Linux/Flatpak] Flatpak preview builds

Postby sofar » Tue Mar 05, 2019 6:39 am

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.
sofar
Developer
 
Posts: 2066
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

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

Postby xeranas » Sun Mar 10, 2019 8:32 am

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.
xeranas
Member
 
Posts: 153
Joined: Fri Feb 05, 2016 11:06 am

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

Postby sofar » Sun Mar 10, 2019 6:13 pm

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.
sofar
Developer
 
Posts: 2066
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

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

Postby aristotle » Sat Mar 16, 2019 9:39 am

sofar wrote: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.

Thank you it works perfectly.

sofar wrote:..

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


FYI
I, as a regular user which I am, have been working with both 0.4.17.1 and 5.0 maps with no problems at all, too.
Well I had some problems moving from RC1 to 5.0, but cleaning all the directories inside ./var/app/net.minetest.Minetest (but ./var/app/net.minetest.Minetest/.minetest/) solved them immediately.
Far better than being forced to replace my currently running MT 0.4.17.1 for the new MT 5.0 since I still have to figure out how to definitely move the older worlds to the new version because of some incompatibilities.

For Archlinux / Manjaro users:
The AUR (a sort of repo) provides the latest 5.0 but would force a full replacement and that would be the right way to go if you had not anything to loose.

...so... in the meantime... flatpak rules! ;D
Thanks again for the flatpakref!
aristotle
Member
 
Posts: 74
Joined: Wed Mar 14, 2018 11:40 pm
GitHub: askotos
In-game: aristotle



Return to Builds



Who is online

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