From c32acb679b475c5265e8b434f6193ce3def9b9bb Mon Sep 17 00:00:00 2001 From: liweiyi88 Date: Thu, 5 Jan 2023 10:52:05 +1100 Subject: [PATCH] update doco --- Makefile | 10 +++++----- README.md | 15 ++++----------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 9d318d5..057a3f8 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -.PHONY: install release +.PHONY: build release ARTIFACTS_DIR=artifacts/${VERSION} GITHUB_USERNAME=liweiyi88 -install: +build: go install + go build . release: - GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)gosnakego_windows_amd64.exe - GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)gosnakego_darwin_amd64 - GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)gosnakego_linux_amd64 + GOOS=windows go build -o $(ARTIFACTS_DIR)gosnakego_windows_amd64.exe + GOOS=darwin go build -o $(ARTIFACTS_DIR)gosnakego_darwin_amd64 diff --git a/README.md b/README.md index bef0084..5f04fc2 100644 --- a/README.md +++ b/README.md @@ -7,23 +7,16 @@ A snake game written in Go ### Get the binary You can get the binary executable for your operating system from the [release page](https://github.com/liweiyi88/gosnakego/releases) -Windows: `gosnakego_windows_amd64.exe` -MacOS: `gosnakego_darwin_amd64` -Linux: `gosnakego_linux_amd64` +Windows: `gosnakego_windows_amd64.exe` +MacOS: `gosnakego_darwin_amd64` For MacOS, you can also run the following command to download the binary. ``` -$ sudo wget https://github.com/liweiyi88/gosnakego/releases/download/v0.2.0/gosnakego_darwin_amd64 -O /usr/local/bin/gosnakego +$ sudo wget https://github.com/liweiyi88/gosnakego/releases/download/v0.3.0/gosnakego_darwin_amd64 -O /usr/local/bin/gosnakego $ sudo chmod +x /usr/local/bin/gosnakego ``` -For Linux, you can also run the following command to download the binary. -``` -$ sudo wget https://github.com/liweiyi88/gosnakego/releases/download/v0.2.0/gosnakego_linux_amd64 -O /usr/local/bin/gosnakego -$ sudo chmod +x /usr/local/bin/gosnakego -``` - -### Build yourself +### Build yourself (For linux user) ``` $ git clone https://github.com/liweiyi88/gosnakego.git $ make install