diff --git a/about-us/index.html b/about-us/index.html index 7306149..ba0b6a4 100644 --- a/about-us/index.html +++ b/about-us/index.html @@ -309,53 +309,120 @@

Try Vyla Home today

Your Entertainment. Zero Servers Attached.

- Download Now +
@@ -389,7 +456,7 @@ - This website runs on green hosting - verified by thegreenwebfoundation.org diff --git a/index.html b/index.html index 42860dc..445d99b 100644 --- a/index.html +++ b/index.html @@ -333,7 +333,7 @@ - Android v1.0.2 + Android v0.0.0 link.name?.toLowerCase().endsWith(".exe")); - const macAsset = release.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".dmg")); + const goFileVersion = goVersion.replace(/^v/, ""); + const windowsAsset = homeRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".exe")); + const macAsset = homeRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".dmg")); + const goAsset = goRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".apk")); const btnText = downloadBtn.querySelector(".download-btn-text"); if (btnText) { btnText.textContent = `Download ${version}`; @@ -375,8 +383,12 @@ windowsDownload.href = `https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`; } windowsDownload.querySelector("span").textContent = `Windows ${version}`; - goDownload.href = "https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/v1.0.2/vyla-go-v1.0.2-1788911736508.apk"; - goDownload.querySelector("span").textContent = "Android v1.0.2"; + if (goAsset?.url) { + goDownload.href = goAsset.url; + } else { + goDownload.href = `https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/${goVersion}/vyla-go-${goFileVersion}.apk`; + } + goDownload.querySelector("span").textContent = `Android ${goVersion}`; if (macAsset?.url) { macDownload.href = macAsset.url; } else { @@ -396,8 +408,7 @@ btnText.textContent = "Download Latest Release"; } windowsDownload.querySelector("span").textContent = "Windows (Latest)"; - goDownload.href = "https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/v1.0.2/vyla-go-v1.0.2-1788911736508.apk"; - goDownload.querySelector("span").textContent = "Android v1.0.2"; + goDownload.querySelector("span").textContent = "Android (Latest)"; macDownload.querySelector("span").textContent = "Mac (Latest)"; } } @@ -621,7 +632,7 @@ - Android v1.0.2 + Android v0.0.0 @@ -637,13 +648,21 @@ const macDownload = document.getElementById(macId); if (!expandable || !downloadBtn || !downloadOptions || !windowsDownload || !goDownload || !macDownload) return; try { - const response = await fetch("https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/releases/permalink/latest"); - if (!response.ok) throw new Error("Failed to fetch latest release"); - const release = await response.json(); - const version = release.tag_name; + const [homeResponse, goResponse] = await Promise.all([ + fetch("https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/releases/permalink/latest"), + fetch("https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/releases/permalink/latest") + ]); + if (!homeResponse.ok) throw new Error("Failed to fetch latest home release"); + if (!goResponse.ok) throw new Error("Failed to fetch latest go release"); + const homeRelease = await homeResponse.json(); + const goRelease = await goResponse.json(); + const version = homeRelease.tag_name; + const goVersion = goRelease.tag_name; const fileVersion = version.replace(/^v/, ""); - const windowsAsset = release.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".exe")); - const macAsset = release.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".dmg")); + const goFileVersion = goVersion.replace(/^v/, ""); + const windowsAsset = homeRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".exe")); + const macAsset = homeRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".dmg")); + const goAsset = goRelease.assets?.links?.find(link => link.name?.toLowerCase().endsWith(".apk")); const btnText = downloadBtn.querySelector(".download-btn-text"); if (btnText) { btnText.textContent = `Download ${version}`; @@ -654,8 +673,12 @@ windowsDownload.href = `https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`; } windowsDownload.querySelector("span").textContent = `Windows ${version}`; - goDownload.href = "https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/v1.0.2/vyla-go-v1.0.2-1788911736508.apk"; - goDownload.querySelector("span").textContent = "Android v1.0.2"; + if (goAsset?.url) { + goDownload.href = goAsset.url; + } else { + goDownload.href = `https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/${goVersion}/vyla-go-${goFileVersion}.apk`; + } + goDownload.querySelector("span").textContent = `Android ${goVersion}`; if (macAsset?.url) { macDownload.href = macAsset.url; } else { @@ -675,8 +698,7 @@ btnText.textContent = "Download Latest Release"; } windowsDownload.querySelector("span").textContent = "Windows (Latest)"; - goDownload.href = "https://gitlab.com/api/v4/projects/vyla-entertainment%2Fgo/packages/generic/vyla-go/v1.0.2/vyla-go-v1.0.2-1788911736508.apk"; - goDownload.querySelector("span").textContent = "Android v1.0.2"; + goDownload.querySelector("span").textContent = "Android (Latest)"; macDownload.querySelector("span").textContent = "Mac (Latest)"; } } diff --git a/privacy-policy/index.html b/privacy-policy/index.html index f8a2646..0ec5eb6 100644 --- a/privacy-policy/index.html +++ b/privacy-policy/index.html @@ -320,53 +320,120 @@

Try Vyla Home today

Your Entertainment. Zero Servers Attached.

- Download Now +
@@ -400,7 +467,7 @@ - This website runs on green hosting - verified by thegreenwebfoundation.org diff --git a/terms-of-service/index.html b/terms-of-service/index.html index 8c1a121..4a0fce2 100644 --- a/terms-of-service/index.html +++ b/terms-of-service/index.html @@ -307,53 +307,120 @@

Try Vyla Home today

Your Entertainment. Zero Servers Attached.

- Download Now +
@@ -387,7 +454,7 @@ - This website runs on green hosting - verified by thegreenwebfoundation.org