aboutsummaryrefslogtreecommitdiff
path: root/commands/installed.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-03-27 17:56:40 +0200
committerMinteck <contact@minteck.org>2022-03-27 17:56:40 +0200
commit44b4222bc02f102480d1afe05d940612ff6cb983 (patch)
tree936e6baf8039e065324cd1c2e453c33ec4cf4122 /commands/installed.js
parent1d8cbd4b6a7b654c77d8cd3793bc67811a39725d (diff)
downloadtwilight-44b4222bc02f102480d1afe05d940612ff6cb983.tar.gz
twilight-44b4222bc02f102480d1afe05d940612ff6cb983.tar.bz2
twilight-44b4222bc02f102480d1afe05d940612ff6cb983.zip
WIP Alicorn port (abandonned, To be removed)
Diffstat (limited to 'commands/installed.js')
-rw-r--r--commands/installed.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/installed.js b/commands/installed.js
index c22e538..b1f048b 100644
--- a/commands/installed.js
+++ b/commands/installed.js
@@ -64,9 +64,9 @@ module.exports = async () => {
signs[pack.id] = c.red("unsafe");
}
- if (pack.platforms.windows === 2 && pack.platforms.linux === 2 && pack.platforms.mac === 2) {
+ if (pack.platforms.windows === 2 && pack.platforms.linux === 2 && pack.platforms.mac === 2 && pack.platforms.alicorn === 2) {
platforms[pack.id] = c.cyan("all");
- } else if (pack.platforms.windows === 1 && pack.platforms.linux === 1 && pack.platforms.mac === 1) {
+ } else if (pack.platforms.windows === 1 && pack.platforms.linux === 1 && pack.platforms.mac === 1 && pack.platforms.alicorn === 1) {
platforms[pack.id] = c.yellow("all");
} else {
platforms[pack.id] = "";
@@ -76,6 +76,8 @@ module.exports = async () => {
if (pack.platforms.linux === 2) { platforms[pack.id] += c.cyan("linux") + "," }
if (pack.platforms.mac === 1) { platforms[pack.id] += c.yellow("macos") + "," }
if (pack.platforms.mac === 2) { platforms[pack.id] += c.cyan("macos") + "," }
+ if (pack.platforms.alicorn === 1) { platforms[pack.id] += c.yellow("alicorn") + "," }
+ if (pack.platforms.alicorn === 2) { platforms[pack.id] += c.cyan("alicorn") + "," }
if (platforms[pack.id].endsWith(",")) { platforms[pack.id] = platforms[pack.id].substring(0, platforms[pack.id].length - 1) }
}