From 44b4222bc02f102480d1afe05d940612ff6cb983 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 27 Mar 2022 17:56:40 +0200 Subject: WIP Alicorn port (abandonned, To be removed) --- commands/info.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'commands/info.js') diff --git a/commands/info.js b/commands/info.js index b88e2b3..e7afd40 100644 --- a/commands/info.js +++ b/commands/info.js @@ -41,29 +41,36 @@ module.exports = async (argv) => { let compatible = true; let replacement = null; - if (os.platform() === "win32" && pkg.platforms.windows === 0) { + if (twiplatform === "win32" && pkg.platforms.windows === 0) { compatible = false; if (typeof pkg.replaced.windows === "string") { replacement = pkg.replaced.windows } - } else if (os.platform() === "linux" && pkg.platforms.linux === 0) { + } else if (twiplatform === "linux" && pkg.platforms.linux === 0) { compatible = false; if (typeof pkg.replaced.linux === "string") { replacement = pkg.replaced.linux } - } else if (os.platform() === "darwin" && pkg.platforms.mac === 0) { + } else if (twiplatform === "darwin" && pkg.platforms.mac === 0) { compatible = false; if (typeof pkg.replaced.mac === "string") { replacement = pkg.replaced.mac } + } else if (twiplatform === "alicorn" && pkg.platforms.alicorn === 0) { + compatible = false; + if (typeof pkg.replaced.alicorn === "string") { + replacement = pkg.replaced.alicorn + } } let experimental = false; - if (os.platform() === "win32" && pkg.platforms.windows === 1) { + if (twiplatform === "win32" && pkg.platforms.windows === 1) { + experimental = true; + } else if (twiplatform === "linux" && pkg.platforms.linux === 1) { experimental = true; - } else if (os.platform() === "linux" && pkg.platforms.linux === 1) { + } else if (twiplatform === "darwin" && pkg.platforms.mac === 1) { experimental = true; - } else if (os.platform() === "darwin" && pkg.platforms.mac === 1) { + } else if (twiplatform === "alicorn" && pkg.platforms.alicorn === 1) { experimental = true; } -- cgit