Add build instructions
This commit is contained in:
parent
a1ddbadea0
commit
0f56916295
20
README.md
20
README.md
@ -63,6 +63,26 @@ go run main.go -addr somehost:6970 # Uses somehost:6970
|
||||
|
||||
Note: The `-local` flag is a shorthand for `-addr localhost:6969` and cannot be used together with `-addr`.
|
||||
|
||||
## Building Release Binaries
|
||||
|
||||
The project uses Docker to create consistent builds across platforms. To build release binaries:
|
||||
|
||||
1. Build the Docker image (only needed once):
|
||||
```bash
|
||||
sudo docker build -t goonscape-builder -f Dockerfile.build .
|
||||
```
|
||||
|
||||
2. Create release builds:
|
||||
```bash
|
||||
sudo docker run -v $(pwd):/build goonscape-builder
|
||||
```
|
||||
|
||||
This will create zip files in the `build` directory for:
|
||||
- Windows (64-bit): `goonscape-windows-amd64-v1.0.0.zip`
|
||||
- Linux (64-bit): `goonscape-linux-amd64-v1.0.0.zip`
|
||||
|
||||
Each zip contains the binary and all required assets.
|
||||
|
||||
## Development
|
||||
|
||||
The project uses Protocol Buffers for network communication. If you modify the `.proto` files, regenerate the Go code with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user