diff options
Diffstat (limited to 'commands/list.js')
-rw-r--r-- | commands/list.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/list.js b/commands/list.js index 871f821..a9560ef 100644 --- a/commands/list.js +++ b/commands/list.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) }
}
|