Page 1 of 1

[Linux/Flatpak] Flatpak preview builds

PostPosted: Wed Aug 10, 2016 23:51
by est31
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
flatpak install --user --bundle Minetest-0.4.15.flatpak


Then you can run it using:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.

Re: [Linux/Flatpak] Flatpak preview builds

PostPosted: 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

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

Re: [Linux/Flatpak] Flatpak preview builds

PostPosted: 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

PostPosted: 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

PostPosted: 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 :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: 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

PostPosted: Mon Jan 09, 2017 09:18
by ClaudiusMinimus
When I run the following I get the error shown
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

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

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
wget https://github.com/est31/minetest-flatpak/releases/download/v1.0/Minetest-0.4.15.flatpak

Corrected path
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: 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

PostPosted: 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

PostPosted: 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

PostPosted: 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

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