diff --git a/build/README.md b/build/README.md index 64aa7f40f864bf586f3c64b61a90284115ca77a2..e638503f40dbf3b1af022a3f041e7ff4a2880cb0 100644 --- a/build/README.md +++ b/build/README.md @@ -18,7 +18,7 @@ These steps are one off to install the required build utilities. 2. Install the command line helper tool. Ensure "$GOPATH/bin" is on your system path to access the executable. ``` - env GO111MODULE=off go get -u src.techknowlogick.com/xgo + go install src.techknowlogick.com/xgo@latest ``` These steps are run for each new release. @@ -39,7 +39,8 @@ These steps are run for each new release. 3. Execute the cross-compiled build helper. ``` - xgo --targets=darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" github.com/heroiclabs/nakama + xgo --targets=darwin/arm64,darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" +github.com/heroiclabs/nakama ``` This will build binaries for all target platforms supported officially by Heroic Labs. @@ -60,7 +61,7 @@ With the release generated we can create the official container image. ``` cd build - docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 + docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 ``` 2. Push the image to the container registry. @@ -79,7 +80,7 @@ With the release generated we can also create an official container image which ``` cd build - docker build "$PWD" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 + docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 ``` 2. Push the image to the container registry. @@ -98,7 +99,7 @@ With the official release image generated we can create a container image to hel ``` cd build/pluginbuilder - docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 + docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 ``` 2. Push the image to the container registry.