-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
21 lines (20 loc) · 958 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Example config file for example Clusterio plugin
Binary will be spawned using child_process.spawn and get input from stdin and text from stdout will be ran as
commands in the factorio server.
*/
var os = require("os");
var binary = "build/clusterioPluginExample_windows";
if(os.platform == "linux") binary = "build/clusterioPluginExample_linux";
if(os.platform == "darwin") binary = "build/clusterioPluginExample_darwin";
module.exports = {
// Name of package. For display somewhere I guess.
name: "clusterioPluginExample",
version: "1.0.0",
// Binary entrypoint for plugin. Don't let it crash. Stdout is sent to game as server chat (run /c commands from here for interface)
// Make sure its cross platform somehow.
binary: binary,
description: "Example plugin for Clusterio to show easy interface integration with factorio servers.",
// We'll send everything in this file to your stdin. Beware.
scriptOutputFileSubscription: "example.txt",
}