From b5b8e9a743e25a0707af061348a4d5c487456041 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Thu, 21 Oct 2021 03:54:56 -0500 Subject: [PATCH 1/3] Add macOS and Windows install links for Quaternion and Nheko Signed-off-by: Aaron Raimist --- src/open/clients/Nheko.js | 7 ++++--- src/open/clients/Quaternion.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/open/clients/Nheko.js b/src/open/clients/Nheko.js index c2e3ab0..d1c206f 100644 --- a/src/open/clients/Nheko.js +++ b/src/open/clients/Nheko.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {Maturity, Platform, LinkKind, FlathubLink, style} from "../types.js"; +import {Maturity, Platform, LinkKind, FlathubLink, WebsiteLink, style} from "../types.js"; /** * Information on how to deep link to a given matrix client. @@ -72,8 +72,9 @@ export class Nheko { } getInstallLinks(platform) { - if (platform === Platform.Linux) { - return [new FlathubLink("io.github.NhekoReborn.Nheko")]; + switch (platform) { + case Platform.Linux: return [new FlathubLink("io.github.NhekoReborn.Nheko")]; + 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 0240821..bf2a86b 100644 --- a/src/open/clients/Quaternion.js +++ b/src/open/clients/Quaternion.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {Maturity, Platform, LinkKind, FlathubLink, style} from "../types.js"; +import {Maturity, Platform, LinkKind, FlathubLink, WebsiteLink, style} from "../types.js"; export class Quaternion { get id() { return "quaternion"; } @@ -43,8 +43,9 @@ export class Quaternion { } getInstallLinks(platform) { - if (platform === Platform.Linux) { - return [new FlathubLink("com.github.quaternion")]; + switch (platform) { + case Platform.Linux: return [new FlathubLink("com.github.quaternion")]; + default: return [new WebsiteLink("https://github.com/quotient-im/Quaternion/releases/latest")]; } } From e71021e8aac6d06a9e3ca3b9ae293006da558394 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 17 Nov 2021 21:23:55 +0000 Subject: [PATCH 2/3] Add F-Droid button for FluffyChat Signed-off-by: Aaron Raimist --- src/open/clients/Fluffychat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open/clients/Fluffychat.js b/src/open/clients/Fluffychat.js index 9955c6a..fefe6c1 100644 --- a/src/open/clients/Fluffychat.js +++ b/src/open/clients/Fluffychat.js @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Maturity, Platform, LinkKind, FlathubLink, AppleStoreLink, PlayStoreLink, WebsiteLink } from "../types.js"; +import { Maturity, Platform, LinkKind, FlathubLink, AppleStoreLink, PlayStoreLink, FDroidLink, WebsiteLink } from "../types.js"; /** * Information on how to deep link to a given matrix client. @@ -44,7 +44,7 @@ export class Fluffychat { getInstallLinks(platform) { switch (platform) { case Platform.iOS: return [new AppleStoreLink("fluffychat", "id1551469600")]; - case Platform.Android: return [new PlayStoreLink("chat.fluffy.fluffychat")]; + case Platform.Android: return [new PlayStoreLink("chat.fluffy.fluffychat"), new FDroidLink('chat.fluffy.fluffychat')]; case Platform.Linux: return [new FlathubLink("im.fluffychat.Fluffychat")]; default: return [new WebsiteLink("https://fluffychat.im")]; } From 5f4c9a7c07cff28adb2361f3dc07e1a13ec99b2c Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 24 Nov 2021 17:27:15 +0000 Subject: [PATCH 3/3] 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")]; } }