Add macOS and Windows install links for Quaternion and Nheko

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2021-10-21 03:54:56 -05:00
parent 7d22a57874
commit b5b8e9a743
No known key found for this signature in database
GPG key ID: 37419210002890EF
2 changed files with 8 additions and 6 deletions

View file

@ -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")];
}
}

View file

@ -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")];
}
}