aboutsummaryrefslogtreecommitdiff
path: root/commands/info.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/info.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/info.js')
-rw-r--r--commands/info.js19
1 files changed, 13 insertions, 6 deletions
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;
}