mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
still trying to fix paths
This commit is contained in:
1 parent
9a0ce97746
commit
dfa5d9ad16
3 files changed
+20
-8
No files matched your search
+10
-5
@@ -12,8 +12,10 @@ This class has the responsiblity of :
|
||||
|
||||
const fs = require("fs");
|
||||
const child_process = require("child_process");
|
||||
const path = require("path");
|
||||
|
||||
const mkdirp = require("mkdirp");
|
||||
const appRootPath = require("app-root-path");
|
||||
|
||||
const fileOps = require("_app/fileOps");
|
||||
|
||||
@@ -125,12 +127,15 @@ module.exports = class factorioServer {
|
||||
await createInstance();
|
||||
}
|
||||
this.onProgress("log", "Starting map creation");
|
||||
console.log(this.factorioDirectory + '/bin/x64/factorio')
|
||||
let code = child_process.spawnSync(
|
||||
this.factorioDirectory + '/bin/x64/factorio', [
|
||||
'-c', this.instanceDirectory + '/config.ini',
|
||||
'--create', this.instanceDirectory + '/saves/'+name,
|
||||
'--server-settings', this.instanceDirectory + '/server-settings.json',
|
||||
]
|
||||
path.resolve(this.factorioDirectory, 'bin', 'x64', 'factorio'), [
|
||||
'-c', path.resolve(this.instanceDirectory,'config.ini'),
|
||||
'--create', path.resolve(this.instanceDirectory, 'saves',name),
|
||||
'--server-settings', path.resolve(this.instanceDirectory, 'server-settings.json'),
|
||||
],{
|
||||
cwd:process.cwd(),
|
||||
}
|
||||
);
|
||||
console.log(code.stdout.toString("utf8"))
|
||||
console.log(code)
|
||||
|
||||
Reference in new issue
Block a user