From 9ac6855c04c7be25c417cef72a543d4cc54a3487 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 30 May 2023 17:37:52 -0600 Subject: [PATCH] download: add Android download links --- site/content/downloads.md | 23 +++++++++++++++++++++++ site/layouts/page/downloads.html | 23 +++++++++++++++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/site/content/downloads.md b/site/content/downloads.md index 1fe6f07e..813b5271 100644 --- a/site/content/downloads.md +++ b/site/content/downloads.md @@ -43,3 +43,26 @@ chmod a+x yuzu-*.AppImage Or with the GUI, right click the AppImage, click Properties, then Permissions, then click "Allow this file to run as a program". After that, double-click the AppImage to run it. + +
+

Android Instructions

+
+
+

yuzu requires Android 11 or above.

+
+
+ +
+ + +
diff --git a/site/layouts/page/downloads.html b/site/layouts/page/downloads.html index 783855b3..bc9739cb 100644 --- a/site/layouts/page/downloads.html +++ b/site/layouts/page/downloads.html @@ -12,6 +12,9 @@ Download for Linux x64 + + Download for Android +
@@ -39,6 +42,12 @@ Linux +
  • + + + Android + +
  • @@ -130,9 +139,12 @@ !userAgent.includes("phone") ) { return "Mac"; - } else if ( - userAgent.includes("linux") && + } else if ( userAgent.includes("android") + ) { + return "Android"; + } else if ( + userAgent.includes("linux") ) { return "Linux"; } @@ -165,12 +177,19 @@ switch (getOSGuess()) { case "Windows": document.getElementById("dl-button-linux").style.display = "none"; + document.getElementById("dl-button-android").style.display = "none"; setTabActive('tab-windows'); break; case "Linux": document.getElementById("dl-button-windows").style.display = "none"; + document.getElementById("dl-button-android").style.display = "none"; setTabActive('tab-linux'); break; + case "Android": + document.getElementById("dl-button-windows").style.display = "none"; + document.getElementById("dl-button-linux").style.display = "none"; + setTabActive('tab-android'); + break; default: document.getElementById("unsupported-platform-view").style.display = "block"; setTabActive('tab-windows');