From 5f4c9a7c07cff28adb2361f3dc07e1a13ec99b2c Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 24 Nov 2021 17:27:15 +0000 Subject: [PATCH] Display both flathub and website download links for Linux Signed-off-by: Aaron Raimist --- src/open/clients/Fluffychat.js | 10 ++++++++-- src/open/clients/Nheko.js | 5 ++++- src/open/clients/Quaternion.js | 5 ++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/open/clients/Fluffychat.js b/src/open/clients/Fluffychat.js index fefe6c1..5ea189f 100644 --- a/src/open/clients/Fluffychat.js +++ b/src/open/clients/Fluffychat.js @@ -44,8 +44,14 @@ export class Fluffychat { getInstallLinks(platform) { switch (platform) { case Platform.iOS: return [new AppleStoreLink("fluffychat", "id1551469600")]; - case Platform.Android: return [new PlayStoreLink("chat.fluffy.fluffychat"), new FDroidLink('chat.fluffy.fluffychat')]; - case Platform.Linux: return [new FlathubLink("im.fluffychat.Fluffychat")]; + case Platform.Android: return [ + 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")]; } } diff --git a/src/open/clients/Nheko.js b/src/open/clients/Nheko.js index d1c206f..e861526 100644 --- a/src/open/clients/Nheko.js +++ b/src/open/clients/Nheko.js @@ -73,7 +73,10 @@ export class Nheko { getInstallLinks(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")]; } } diff --git a/src/open/clients/Quaternion.js b/src/open/clients/Quaternion.js index bf2a86b..b3a9208 100644 --- a/src/open/clients/Quaternion.js +++ b/src/open/clients/Quaternion.js @@ -44,7 +44,10 @@ export class Quaternion { getInstallLinks(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")]; } }