mirror of
https://git.suyu.dev/suyu/website.git
synced 2026-01-06 06:28:03 +01:00
a
This commit is contained in:
parent
4be4a68531
commit
631cb61e8a
1 changed files with 5 additions and 5 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
const releases = await response.json();
|
const releases = await response.json();
|
||||||
const latestRelease = releases[0].name;
|
const latestRelease = releases[0].name;
|
||||||
|
|
||||||
console.log(latestRelease)
|
console.log(latestRelease);
|
||||||
// Release found
|
// Release found
|
||||||
if (latestRelease) {
|
if (latestRelease) {
|
||||||
console.log("Latest release tag:", latestRelease);
|
console.log("Latest release tag:", latestRelease);
|
||||||
|
|
@ -51,16 +51,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!fakeVersionTag) {
|
if (!fakeVersionTag) {
|
||||||
latestRelease = await getTag();
|
latestRelease = await getTag();
|
||||||
} else {
|
} else {
|
||||||
latestRelease = "v0.0.1";
|
latestRelease = "v0.0.1";
|
||||||
console.log(latestRelease)
|
console.log(latestRelease);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (UA.includes("Windows")) {
|
if (UA.includes("Windows")) {
|
||||||
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/download/${latestRelease}/Suyu-Windows_x86_64.7z`;
|
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/download/${latestRelease}/Suyu-Windows_x86_64.7z`;
|
||||||
// Android is above Linux because Android UA's also contain "Linux"
|
// Android is above Linux because Android UA's also contain "Linux"
|
||||||
} else if (UA.includes("Android")) {
|
} else if (UA.includes("Android")) {
|
||||||
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/download/${latestRelease}/Suyu-Android_Arm64.apk`;
|
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/download/${latestRelease}/Suyu-Android_Arm64.apk`;
|
||||||
} else if (UA.includes("Linux")) {
|
} else if (UA.includes("Linux")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue