Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java installer #10

Open
g0dm0d opened this issue Mar 17, 2023 · 1 comment
Open

java installer #10

g0dm0d opened this issue Mar 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@g0dm0d
Copy link
Owner

g0dm0d commented Mar 17, 2023

No description provided.

@g0dm0d g0dm0d converted this from a draft issue Mar 17, 2023
@g0dm0d
Copy link
Owner Author

g0dm0d commented Mar 17, 2023

@ModerNik as sample

function getOS() {
  var userAgent = window.navigator.userAgent,
      platform = window.navigator.platform,
      macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
      windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
      iosPlatforms = ['iPhone', 'iPad', 'iPod'],
      os = null;

  if (macosPlatforms.indexOf(platform) !== -1) {
    os = 'Mac OS';
  } else if (iosPlatforms.indexOf(platform) !== -1) {
    os = 'iOS';
  } else if (windowsPlatforms.indexOf(platform) !== -1) {
    os = 'Windows';
  } else if (/Android/.test(userAgent)) {
    os = 'Android';
  } else if (!os && /Linux/.test(platform)) {
    os = 'Linux';
  }

  return os;
}

Java installation available only on Linux and Windows

And when you select a version of minecraft you get the java version

In the future the java setting will be a parameter to get_minecraft like boolean

@g0dm0d g0dm0d added the enhancement New feature or request label Mar 17, 2023
@g0dm0d g0dm0d moved this from In Progress to Todo in yogurt launcher May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants