mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
website: add back download buttons
This commit is contained in:
parent
c36e819ba3
commit
97370712bc
@ -1,104 +1,109 @@
|
||||
import type { IconType } from "react-icons";
|
||||
import {
|
||||
FaAndroid,
|
||||
FaApple,
|
||||
FaDebian,
|
||||
FaFedora,
|
||||
FaOpensuse,
|
||||
FaUbuntu,
|
||||
FaWindows,
|
||||
FaRedhat,
|
||||
FaAndroid,
|
||||
FaApple,
|
||||
FaDebian,
|
||||
FaFedora,
|
||||
FaOpensuse,
|
||||
FaUbuntu,
|
||||
FaWindows,
|
||||
FaRedhat,
|
||||
} from "react-icons/fa6";
|
||||
import { LuHouse, LuNewspaper, LuDownload, LuBook } from "react-icons/lu";
|
||||
|
||||
export const routes: Record<string, [string, IconType|null]> = {
|
||||
"/": ["Home", LuHouse],
|
||||
"/blog": ["Blog", LuNewspaper],
|
||||
"/docs": ["Docs", LuBook],
|
||||
"/downloads": ["Downloads", LuDownload],
|
||||
"/about": ["About", null],
|
||||
export const routes: Record<string, [string, IconType | null]> = {
|
||||
"/": ["Home", LuHouse],
|
||||
"/blog": ["Blog", LuNewspaper],
|
||||
"/docs": ["Docs", LuBook],
|
||||
"/downloads": ["Downloads", LuDownload],
|
||||
"/about": ["About", null],
|
||||
};
|
||||
|
||||
const releasesUrl =
|
||||
"https://github.com/KRTirtho/Spotube/releases/latest/download";
|
||||
"https://github.com/KRTirtho/Spotube/releases/latest/download";
|
||||
|
||||
export const downloadLinks: Record<string, [string, IconType[]]> = {
|
||||
"Android Apk": [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid]],
|
||||
"Windows Executable": [
|
||||
`${releasesUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
],
|
||||
"macOS Dmg": [`${releasesUrl}/Spotube-macos-universal.dmg`, [FaApple]],
|
||||
"Ubuntu, Debian": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
],
|
||||
"Fedora, Redhat, Opensuse": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.rpm`,
|
||||
[FaFedora, FaRedhat, FaOpensuse],
|
||||
],
|
||||
"iPhone Ipa": [`${releasesUrl}/Spotube-iOS.ipa`, [FaApple]],
|
||||
"Android Apk": [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid]],
|
||||
"Windows Executable": [
|
||||
`${releasesUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
],
|
||||
"macOS Dmg": [`${releasesUrl}/Spotube-macos-universal.dmg`, [FaApple]],
|
||||
"Ubuntu, Debian": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
],
|
||||
"Fedora, Redhat, Opensuse": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.rpm`,
|
||||
[FaFedora, FaRedhat, FaOpensuse],
|
||||
],
|
||||
"iPhone Ipa": [`${releasesUrl}/Spotube-iOS.ipa`, [FaApple]],
|
||||
};
|
||||
|
||||
export const extendedDownloadLinks: Record<
|
||||
string,
|
||||
[string, IconType[], string]
|
||||
string,
|
||||
[string, IconType[], string]
|
||||
> = {
|
||||
Android: [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid], "apk"],
|
||||
Windows: [
|
||||
`${releasesUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
"exe",
|
||||
],
|
||||
macOS: [`${releasesUrl}/Spotube-macos-universal.dmg`, [FaApple], "dmg"],
|
||||
"Ubuntu, Debian": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
"deb",
|
||||
],
|
||||
"Fedora, Redhat, Opensuse": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.rpm`,
|
||||
[FaFedora, FaRedhat, FaOpensuse],
|
||||
"rpm",
|
||||
],
|
||||
iPhone: [`${releasesUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"],
|
||||
Android: [`${releasesUrl}/Spotube-android-all-arch.apk`, [FaAndroid], "apk"],
|
||||
Windows: [
|
||||
`${releasesUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
"exe",
|
||||
],
|
||||
macOS: [`${releasesUrl}/Spotube-macos-universal.dmg`, [FaApple], "dmg"],
|
||||
"Ubuntu, Debian (x64)": [
|
||||
`${releasesUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
"deb",
|
||||
],
|
||||
"Ubuntu, Debian (arm64)": [
|
||||
`${releasesUrl}/Spotube-linux-aarch64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
"deb",
|
||||
],
|
||||
// "Fedora, Redhat, Opensuse": [
|
||||
// `${releasesUrl}/Spotube-linux-x86_64.rpm`,
|
||||
// [FaFedora, FaRedhat, FaOpensuse],
|
||||
// "rpm",
|
||||
// ],
|
||||
iPhone: [`${releasesUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"],
|
||||
};
|
||||
|
||||
const nightlyReleaseUrl =
|
||||
"https://github.com/KRTirtho/Spotube/releases/download/nightly";
|
||||
"https://github.com/KRTirtho/Spotube/releases/download/nightly";
|
||||
|
||||
export const extendedNightlyDownloadLinks: Record<
|
||||
string,
|
||||
[string, IconType[], string]
|
||||
string,
|
||||
[string, IconType[], string]
|
||||
> = {
|
||||
Android: [
|
||||
`${nightlyReleaseUrl}/Spotube-android-all-arch.apk`,
|
||||
[FaAndroid],
|
||||
"apk",
|
||||
],
|
||||
Windows: [
|
||||
`${nightlyReleaseUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
"exe",
|
||||
],
|
||||
macOS: [`${nightlyReleaseUrl}/Spotube-macos-universal.dmg`, [FaApple], "dmg"],
|
||||
"Ubuntu, Debian": [
|
||||
`${nightlyReleaseUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
"deb",
|
||||
],
|
||||
"Fedora, Redhat, Opensuse": [
|
||||
`${nightlyReleaseUrl}/Spotube-linux-x86_64.rpm`,
|
||||
[FaFedora, FaRedhat, FaOpensuse],
|
||||
"rpm",
|
||||
],
|
||||
iPhone: [`${nightlyReleaseUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"],
|
||||
Android: [
|
||||
`${nightlyReleaseUrl}/Spotube-android-all-arch.apk`,
|
||||
[FaAndroid],
|
||||
"apk",
|
||||
],
|
||||
Windows: [
|
||||
`${nightlyReleaseUrl}/Spotube-windows-x86_64-setup.exe`,
|
||||
[FaWindows],
|
||||
"exe",
|
||||
],
|
||||
macOS: [`${nightlyReleaseUrl}/Spotube-macos-universal.dmg`, [FaApple], "dmg"],
|
||||
"Ubuntu, Debian": [
|
||||
`${nightlyReleaseUrl}/Spotube-linux-x86_64.deb`,
|
||||
[FaUbuntu, FaDebian],
|
||||
"deb",
|
||||
],
|
||||
"Fedora, Redhat, Opensuse": [
|
||||
`${nightlyReleaseUrl}/Spotube-linux-x86_64.rpm`,
|
||||
[FaFedora, FaRedhat, FaOpensuse],
|
||||
"rpm",
|
||||
],
|
||||
iPhone: [`${nightlyReleaseUrl}/Spotube-iOS.ipa`, [FaApple], "ipa"],
|
||||
};
|
||||
|
||||
export const ADS_SLOTS = Object.freeze({
|
||||
rootPageDisplay: 5979549631,
|
||||
blogPageInFeed: 3386010031,
|
||||
downloadPageDisplay: 9928443050,
|
||||
rootPageDisplay: 5979549631,
|
||||
blogPageInFeed: 3386010031,
|
||||
downloadPageDisplay: 9928443050,
|
||||
packagePageArticle: 9119323068,
|
||||
// This is being used for rehype-auto-ads in svelte.config.js
|
||||
blogArticlePageArticle: 6788673194,
|
||||
|
@ -22,34 +22,7 @@ const otherDownloads: [string, string, IconType][] = [
|
||||
<br /><br />
|
||||
<h5 class="h5">Spotube is available for every platform</h5>
|
||||
<br />
|
||||
<!-- WARNING! -->
|
||||
<h3 class="h3 text-red-500" data-svelte-h="svelte-1l4b696">
|
||||
Versions of Spotube (<=v4.0.2) are ceased to work with Spotify™ API.
|
||||
<br />
|
||||
So users can no longer use/download those versions.
|
||||
<br />
|
||||
Please wait for the next version that will remedy this issue by not using such
|
||||
APIs.
|
||||
</h3>
|
||||
<p class="text-surface-500 mt-5" data-svelte-h="svelte-1nkw9cu">
|
||||
Spotube has no affiliation with Spotify™ or any of its subsidiaries.
|
||||
</p>
|
||||
<br />
|
||||
<br />
|
||||
<!-- <DownloadItems links={extendedDownloadLinks} /> -->
|
||||
<h6 class="h6 mb-5" data-svelte-h="svelte-1ws2638">
|
||||
The new Spotube v5 is still under beta. Please use the Nightly version
|
||||
until stable release.
|
||||
</h6>
|
||||
<!-- WARNING! -->
|
||||
<div class="flex">
|
||||
<a href="/downloads/nightly" class="flex gap-2 btn btn-lg preset-filled">
|
||||
<LuDownload />
|
||||
Download Nightly
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<DownloadItems links={extendedDownloadLinks} />
|
||||
<br />
|
||||
<Ads adSlot={ADS_SLOTS.downloadPageDisplay} adFormat="auto" />
|
||||
<br />
|
||||
|
@ -53,11 +53,11 @@ import { ADS_SLOTS } from "~/collections/app";
|
||||
</div>
|
||||
<div class="flex justify-center">
|
||||
<a
|
||||
href="/downloads/nightly"
|
||||
href="/downloads"
|
||||
class="flex gap-2 btn btn-lg preset-filled"
|
||||
>
|
||||
<LuDownload />
|
||||
Download Nightly
|
||||
Download
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user