aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-07 20:15:23 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-07 20:15:23 +0200
commitc90ebfa1c84e1ba668a65d0325e96d201c4abbf8 (patch)
tree3a4e80dc0461ad1c6e0c763aad669d39a458ebe3 /index.js
parent981b80066504cf94224f0fd431281edb740f2669 (diff)
downloadelectrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.tar.gz
electrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.tar.bz2
electrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.zip
Electrode is stable!
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.js b/index.js
index 4c1cd64..54d7638 100644
--- a/index.js
+++ b/index.js
@@ -1,7 +1,13 @@
+if (require('os').platform() === "win32") {
+ console.log("Electrode cannot run on Windows. Please use a POSIX-compliant operating system to run an Electrode server.");
+ process.exit(255);
+}
+
const fs = require('fs');
const chalk = require('chalk');
const progress = require('progress');
global.cluster = require('cluster');
+global.publicDir = __dirname + "/public";
if (require('fs').existsSync("./cache/download.tar")) {
require('fs').unlinkSync("./cache/download.tar");