Display both flathub and website download links for Linux

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2021-11-24 17:27:15 +00:00
parent e71021e8aa
commit 5f4c9a7c07
No known key found for this signature in database
GPG Key ID: 37419210002890EF
3 changed files with 16 additions and 4 deletions

View File

@ -44,8 +44,14 @@ export class Fluffychat {
getInstallLinks(platform) { getInstallLinks(platform) {
switch (platform) { switch (platform) {
case Platform.iOS: return [new AppleStoreLink("fluffychat", "id1551469600")]; case Platform.iOS: return [new AppleStoreLink("fluffychat", "id1551469600")];
case Platform.Android: return [new PlayStoreLink("chat.fluffy.fluffychat"), new FDroidLink('chat.fluffy.fluffychat')]; case Platform.Android: return [
case Platform.Linux: return [new FlathubLink("im.fluffychat.Fluffychat")]; new PlayStoreLink("chat.fluffy.fluffychat"),
new FDroidLink('chat.fluffy.fluffychat'),
];
case Platform.Linux: return [
new FlathubLink("im.fluffychat.Fluffychat"),
new WebsiteLink("https://fluffychat.im"),
];
default: return [new WebsiteLink("https://fluffychat.im")]; default: return [new WebsiteLink("https://fluffychat.im")];
} }
} }

View File

@ -73,7 +73,10 @@ export class Nheko {
getInstallLinks(platform) { getInstallLinks(platform) {
switch (platform) { switch (platform) {
case Platform.Linux: return [new FlathubLink("io.github.NhekoReborn.Nheko")]; case Platform.Linux: return [
new FlathubLink("io.github.NhekoReborn.Nheko"),
new WebsiteLink("https://github.com/Nheko-Reborn/nheko/releases/latest"),
];
default: return [new WebsiteLink("https://github.com/Nheko-Reborn/nheko/releases/latest")]; default: return [new WebsiteLink("https://github.com/Nheko-Reborn/nheko/releases/latest")];
} }
} }

View File

@ -44,7 +44,10 @@ export class Quaternion {
getInstallLinks(platform) { getInstallLinks(platform) {
switch (platform) { switch (platform) {
case Platform.Linux: return [new FlathubLink("com.github.quaternion")]; case Platform.Linux: return [
new FlathubLink("com.github.quaternion"),
new WebsiteLink("https://github.com/quotient-im/Quaternion/releases/latest"),
];
default: return [new WebsiteLink("https://github.com/quotient-im/Quaternion/releases/latest")]; default: return [new WebsiteLink("https://github.com/quotient-im/Quaternion/releases/latest")];
} }
} }