Skip to content

Commit 2e19450

Browse files
committed
Added instructions for using prebuilt Windows binary to README, moved existing installation to "Building in Windows" section
1 parent 63909d8 commit 2e19450

File tree

1 file changed

+51
-43
lines changed

1 file changed

+51
-43
lines changed

README.md

Lines changed: 51 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,50 +22,12 @@ This tool runs on a Factorio server and allows management of the Factorio server
2222
4. Visit [localhost:8080](localhost:8080) in your web browser.
2323

2424
## Installation Windows
25-
1. Download the latest release source zip file
25+
1. Download the latest release
2626
* [https://github.com/MajorMJR/factorio-server-manager/releases](https://github.com/MajorMJR/factorio-server-manager/releases)
27-
2. Unzip the Factorio Standalone server and move it to a known directory.
28-
3. Download and install Go 1.6 64-bit or 32-bit depending on your operating system, if unsure download 32-bit
29-
* https://storage.googleapis.com/golang/go1.6.windows-amd64.msi 64-bit
30-
* https://storage.googleapis.com/golang/go1.6.windows-386.msi 32-bit
31-
4. Download and install NodeJS 4.2.6 64-bit or 32-bit depending on your operating system, if unsure download 32-bit
32-
* https://nodejs.org/download/release/v4.2.6/node-v4.2.6-x64.msi 64-bit
33-
* https://nodejs.org/download/release/v4.2.6/node-v4.2.6-x86.msi 32-bit
34-
5. Download and install NVM, when asked if you want it to use NodeJS 4.2.6 accept
35-
* https://github.com/coreybutler/nvm-windows/releases/download/1.1.1/nvm-setup.zip
36-
6. You will need to setup GOPATH in environmental settings in windows. You will want to go into Control Panel\System and Security\System From there on the left hand side click "Advanced system settings". A window will open and you need to click Environment Variables.
37-
7. Under System Variables click New. For Variable name use GOPATH and Variable value C:\Go\
38-
39-
Once everything is installed and ready to go you will need to compile the source for windows
40-
41-
1. Open the folder where ever you unzipped from step #2 above.
42-
2. My folder structure is like this "C:\FS\factorio-server-manager\" C:\FS is where my factorio files are located C:\FS\factorio-server-manager\ is where the server manager files are.
43-
3. You will now need to install some dependencies for Go. You will need to open up a command prompt and one at a time type each of these and hit enter before typing the next one.
44-
45-
```
46-
go get github.com/apexskier/httpauth
47-
go get github.com/go-ini/ini
48-
go get github.com/gorilla/mux
49-
go get github.com/hpcloud/tail
50-
```
51-
52-
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down left shift and right click an empty area of the folder. Then click "Open command windows here"
53-
4. Type this into the command prompt then hit enter:
54-
55-
```
56-
go build
57-
```
58-
59-
5. Once finished you will now see src.exe or src file inside the folder. You need to move that file to the C:\FS\factorio-server-manager\ or the folder that is before your src folder.
60-
6. From here you need to build the web front-end by going into your ui folder for me its C:\FS\factorio-server-manager\ui\ and again hold shift and left click in an empty area then select open command prompt here. You then need to type this:
61-
62-
```
63-
npm install
64-
npm run build
65-
```
66-
67-
7. Now execute the src file created in step #4 above
68-
8. You can now Visit [localhost:8080](localhost:8080) in your web browser to start using the Factorio server Manager
27+
2. Download the Factorio Standalone server and install to a known directory.
28+
3. Run the server binary file via cmd or Powershell, use the --dir flag to point the management server to your Factorio installation.
29+
* ```.\factorio-server-manager --dir C:/Users/username/Factorio
30+
4. Visit [localhost:8080](localhost:8080) in your web browser.
6931
7032
## Usage
7133
Run the UI server and specify the directory of your Factorio server installation and the interface to run the HTTP server on. Edit the conf.json file with your desired credentials for authentication.
@@ -142,6 +104,52 @@ Transpiled bundle.js application is output to app/bundle.js, 'npm run build' scr
142104
Start factorio-server-manager binary in another terminal
143105
```
144106
107+
### Building for Windows
108+
1. Download the latest release source zip file
109+
* [https://github.com/MajorMJR/factorio-server-manager/releases](https://github.com/MajorMJR/factorio-server-manager/releases)
110+
2. Unzip the Factorio Standalone server and move it to a known directory.
111+
3. Download and install Go 1.6 64-bit or 32-bit depending on your operating system, if unsure download 32-bit
112+
* https://storage.googleapis.com/golang/go1.6.windows-amd64.msi 64-bit
113+
* https://storage.googleapis.com/golang/go1.6.windows-386.msi 32-bit
114+
4. Download and install NodeJS 4.2.6 64-bit or 32-bit depending on your operating system, if unsure download 32-bit
115+
* https://nodejs.org/download/release/v4.2.6/node-v4.2.6-x64.msi 64-bit
116+
* https://nodejs.org/download/release/v4.2.6/node-v4.2.6-x86.msi 32-bit
117+
5. Download and install NVM, when asked if you want it to use NodeJS 4.2.6 accept
118+
* https://github.com/coreybutler/nvm-windows/releases/download/1.1.1/nvm-setup.zip
119+
6. You will need to setup GOPATH in environmental settings in windows. You will want to go into Control Panel\System and Security\System From there on the left hand side click "Advanced system settings". A window will open and you need to click Environment Variables.
120+
7. Under System Variables click New. For Variable name use GOPATH and Variable value C:\Go\
121+
122+
Once everything is installed and ready to go you will need to compile the source for windows
123+
124+
1. Open the folder where ever you unzipped from step #2 above.
125+
2. My folder structure is like this "C:\FS\factorio-server-manager\" C:\FS is where my factorio files are located C:\FS\factorio-server-manager\ is where the server manager files are.
126+
3. You will now need to install some dependencies for Go. You will need to open up a command prompt and one at a time type each of these and hit enter before typing the next one.
127+
128+
```
129+
go get github.com/apexskier/httpauth
130+
go get github.com/go-ini/ini
131+
go get github.com/gorilla/mux
132+
go get github.com/hpcloud/tail
133+
```
134+
135+
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down left shift and right click an empty area of the folder. Then click "Open command windows here"
136+
4. Type this into the command prompt then hit enter:
137+
138+
```
139+
go build
140+
```
141+
142+
5. Once finished you will now see src.exe or src file inside the folder. You need to move that file to the C:\FS\factorio-server-manager\ or the folder that is before your src folder.
143+
6. From here you need to build the web front-end by going into your ui folder for me its C:\FS\factorio-server-manager\ui\ and again hold shift and left click in an empty area then select open command prompt here. You then need to type this:
144+
145+
```
146+
npm install
147+
npm run build
148+
```
149+
150+
7. Now execute the src file created in step #4 above
151+
8. You can now Visit [localhost:8080](localhost:8080) in your web browser to start using the Factorio server Manager
152+
145153
## Contributing
146154
1. Fork it!
147155
2. Create your feature branch: `git checkout -b my-new-feature`

0 commit comments

Comments
 (0)