aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
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");