diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-07 20:15:23 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-07 20:15:23 +0200 |
commit | c90ebfa1c84e1ba668a65d0325e96d201c4abbf8 (patch) | |
tree | 3a4e80dc0461ad1c6e0c763aad669d39a458ebe3 /index.js | |
parent | 981b80066504cf94224f0fd431281edb740f2669 (diff) | |
download | electrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.tar.gz electrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.tar.bz2 electrode-c90ebfa1c84e1ba668a65d0325e96d201c4abbf8.zip |
Electrode is stable!
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"); |