Skip to content

Conversation

rubenwardy
Copy link
Contributor

@rubenwardy rubenwardy commented Mar 12, 2017

1 = https://www.whatismybrowser.com/developers/tools/user-agent-parser/browse/operating-system-name/linux-user-agents

screenshot_2017-03-12_02-11-47

@rubenwardy rubenwardy force-pushed the download-detect branch 2 times, most recently from 8e1c435 to 0ce879a Compare March 12, 2017 02:13
@sofar
Copy link
Contributor

sofar commented Mar 12, 2017

that reminds me we should really do flatpak builds, and advertise those as well.

@rubenwardy rubenwardy force-pushed the download-detect branch 2 times, most recently from 57757c2 to f2a42f1 Compare March 12, 2017 02:14
@est31
Copy link
Contributor

est31 commented Mar 12, 2017

@sofar in the case you were not aware, there are already unofficial flatpak builds at the forum: https://forum.minetest.net/viewtopic.php?f=42&t=15336

Github link: https://github.com/est31/minetest-flatpak

What's missing is three things:

  1. singing keys (prefferably c55 has a copy so that in the case sth happens we won't lose them)
  2. server to host the builds as a flatpak repo. Just having bare flatpak files is not the way flatpak ought to be used. You are supposed to have a repo.
  3. (maybe) some automation to have a nightly repo as well

I hoped flathub would have became a thing, but seems nothing is happening here, so we'll have to roll our own. :/

downloads.html Outdated
title = "{{ page.latest_downloads.mac.title }}";
url = "{{ page.latest_downloads.mac.url }}";
} else if (platform.indexOf("linux") >= 0) {
platform_name = "Ubuntu";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRIGGERED

I mean this is pretty stupid, most browsers on Ubuntu even have that in the user agent so you could look for that. Don't even bother trying to add a download button for the other linux flavors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should instead redirect to the download page in the case of linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good guess, but yeah - it's on my todo list

@rubenwardy
Copy link
Contributor Author

updated

@rubenwardy rubenwardy removed the WIP label Mar 12, 2017
@rubenwardy rubenwardy force-pushed the download-detect branch 5 times, most recently from c980c78 to 367a9c9 Compare March 12, 2017 11:49
downloads.html Outdated
<script>
function detectPlatformName() {
var userAgent = navigator.userAgent.toLowerCase();
var platforms = ["windows", "mac", "ubuntu", "debian", "fedora"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is fedora or debian actually found in user agents?
afaik only ubuntu does this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu:
os: Ubuntu
title: search for .deb
url: http://packages.ubuntu.com/search?keywords=minetest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be better to link to the software center:
https://apps.ubuntu.com/cat/applications/minetest/ or a link that would open the "software center" application

downloads.html Outdated
debian:
os: Debian
title: search for .deb
url: https://packages.debian.org/search?keywords=minetest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we deal with debian & ubuntu mostly having ridiculously outdated versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea :/
Maybe detect whether the OS is LTS or not for Ubuntu?
Or get the user to install a stable MT apt repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth noting that I literally copied the links from the Linux section, and this problem existed before. There's just less text now to warn them

@rubenwardy rubenwardy force-pushed the download-detect branch 2 times, most recently from 5bfc25e to 81eb318 Compare March 12, 2017 12:40
@rubenwardy
Copy link
Contributor Author

added all Linux platforms in the linux section, although I have no idea if they work (yet) :P

@rubenwardy rubenwardy force-pushed the download-detect branch 4 times, most recently from 7b03b6f to 80afc99 Compare March 12, 2017 13:20
@rubenwardy
Copy link
Contributor Author

Updated.

Worrying about old versions existed before this PR. I think this should be solved in a separate PR by adding apt-repo instructions.

@Megaf
Copy link
Contributor

Megaf commented Mar 7, 2018

I think we should go the same path big browsers are going.

  1. Detect OS family, Linux, Windows, macOS
  2. Offer most common package options and architectures for that family. For example. If Linux, offer [Linux 64 DEB], [Linux 64 RPM], [Linux 64 TGZ], [Linux 32 DEB], [Linux 32 RPM], [Linux 32 TGZ], [Source]. If Windows offer, [Windows 64 Installer], [Windows 32 Installer]. If macOS [macOS 64 DMG].

@benrob0329
Copy link

benrob0329 commented Mar 7, 2018

Should be

sudo pacman -S minetest

For arch, as its generally up to date.

@asddsaz
Copy link

asddsaz commented Sep 9, 2018

For Elementary OS it could automatically open in the App Store.

Like this: https://appcenter.elementary.io/minetest.desktop

I am not sure how it would identify Elementary OS users.

@rubenwardy rubenwardy closed this Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants