Skip to content

Commit ad83149

Browse files
committed
Readme and build with electron-packager
1 parent b339e89 commit ad83149

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#node stuff
22
node_modules/
33
factorio*
4-
clusterio-client*
4+
clusterio*

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
factorioClusterioClient
1+
#ClusterioClient
2+
3+
This is a desktop application that makes it easy to connect to clusterio
4+
servers. It has its own server browser and will automatically download mods from
5+
compatible servers and launch factorio correctly, making it feasible to play
6+
multiplayer on servers with many different sets of mods.
7+
8+
All issues and feature requests should be filed at [github issues](https://github.com/Danielv123/factorioClusterioClient/issues)
9+
10+
#Development
11+
12+
I am happpy to accept PRs.
13+
14+
To set up a dev environment, clone the repo and run
15+
16+
npm install-dev
17+
18+
test with
19+
20+
electron .
21+
22+
and build with
23+
24+
npm run build
25+
26+
you may need to `npm install electron-packager -g` first.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ app.on("ready", function() { // run main app code
173173
var request = http.get(url, function(response) {
174174
response.pipe(file);
175175
file.on('finish', function() {
176+
console.log(url);
176177
file.close(cb);
177178
});
178179
});

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "electron ."
8+
"start": "electron .",
9+
"build": "electron-packager . clusterioClient --all && echo Done packaging!"
910
},
1011
"repository": {
1112
"type": "git",
@@ -23,6 +24,8 @@
2324
},
2425
"homepage": "https://github.com/Danielv123/factorioClusterioClient#readme",
2526
"devDependencies": {
27+
"electron-builder": "^11.2.3",
28+
"electron-packager": "^8.4.0",
2629
"electron-prebuilt": "^1.4.13"
2730
},
2831
"dependencies": {

0 commit comments

Comments
 (0)