From b5b8e9a743e25a0707af061348a4d5c487456041 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Thu, 21 Oct 2021 03:54:56 -0500 Subject: [PATCH] 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")]; } }