mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
factorioServer relative paths instead of absolute
This commit is contained in:
1 parent
d9d8905d02
commit
507c0afa98
2 files changed
+7
-7
No files matched your search
+4
-4
@@ -129,10 +129,10 @@ module.exports = class factorioServer {
|
||||
this.onProgress("log", "Starting map creation");
|
||||
console.log(this.factorioDirectory + '/bin/x64/factorio')
|
||||
let code = child_process.spawnSync(
|
||||
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'),
|
||||
path.join(this.factorioDirectory, 'bin', 'x64', 'factorio'), [
|
||||
'-c', path.join(this.instanceDirectory,'config.ini'),
|
||||
'--create', path.join(this.instanceDirectory, 'saves',name),
|
||||
'--server-settings', path.join(this.instanceDirectory, 'server-settings.json'),
|
||||
],{
|
||||
cwd:process.cwd(),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user