website: fix invalid nightly url

This commit is contained in:
Kingkor Roy Tirtho 2026-02-20 22:33:00 +06:00
parent e135985308
commit 25bafe1756

View File

@ -22,6 +22,8 @@ export const routes: Record<string, [string, IconType | null]> = {
const releasesUrl = const releasesUrl =
"https://github.com/KRTirtho/Spotube/releases/latest/download"; "https://github.com/KRTirtho/Spotube/releases/latest/download";
const releasesNightlyUrl =
"https://github.com/KRTirtho/Spotube/releases/download/nightly";
export const downloadLinks: Record<string, [string, IconType[]]> = { export const downloadLinks: Record<string, [string, IconType[]]> = {
"Android Apk": [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid]], "Android Apk": [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid]],
@ -87,39 +89,47 @@ export const extendedNightlyDownloadLinks: Record<
string, string,
[string, IconType[], string] [string, IconType[], string]
> = { > = {
Android: [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid], "apk"], Android: [
`${releasesNightlyUrl}/Spotube-android-all-arch.apk`,
[FaAndroid],
"apk",
],
Windows: [ Windows: [
`${releasesUrl}/Spotube-windows-x86_64-setup.exe`, `${releasesNightlyUrl}/Spotube-windows-x86_64-setup.exe`,
[FaWindows], [FaWindows],
"exe", "exe",
], ],
macOS: [`${releasesUrl}/Spotube-macos-universal.dmg`, [FaApple], "dmg"], macOS: [
`${releasesNightlyUrl}/Spotube-macos-universal.dmg`,
[FaApple],
"dmg",
],
"Ubuntu, Debian (x64)": [ "Ubuntu, Debian (x64)": [
`${releasesUrl}/Spotube-linux-x86_64.deb`, `${releasesNightlyUrl}/Spotube-linux-x86_64.deb`,
[FaUbuntu, FaDebian], [FaUbuntu, FaDebian],
"deb", "deb",
], ],
"Ubuntu, Debian (arm64)": [ "Ubuntu, Debian (arm64)": [
`${releasesUrl}/Spotube-linux-aarch64.deb`, `${releasesNightlyUrl}/Spotube-linux-aarch64.deb`,
[FaUbuntu, FaDebian], [FaUbuntu, FaDebian],
"deb", "deb",
], ],
"Fedora, Redhat, Opensuse": [ "Fedora, Redhat, Opensuse": [
`${releasesUrl}/Spotube-linux-x86_64.rpm`, `${releasesNightlyUrl}/Spotube-linux-x86_64.rpm`,
[FaFedora, FaRedhat, FaOpensuse], [FaFedora, FaRedhat, FaOpensuse],
"rpm", "rpm",
], ],
"Linux AppImage (x64)": [ "Linux AppImage (x64)": [
`${releasesUrl}/Spotube-linux-x86_64.AppImage`, `${releasesNightlyUrl}/Spotube-linux-x86_64.AppImage`,
[FaLinux], [FaLinux],
"AppImage", "AppImage",
], ],
"Linux AppImage (arm64)": [ "Linux AppImage (arm64)": [
`${releasesUrl}/Spotube-linux-aarch64.AppImage`, `${releasesNightlyUrl}/Spotube-linux-aarch64.AppImage`,
[FaLinux], [FaLinux],
"AppImage", "AppImage",
], ],
iPhone: [`${releasesUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"], iPhone: [`${releasesNightlyUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"],
}; };
export const ADS_SLOTS = Object.freeze({ export const ADS_SLOTS = Object.freeze({