Skip to content

Commit

Permalink
update doco
Browse files Browse the repository at this point in the history
  • Loading branch information
liweiyi88 committed Jan 4, 2023
1 parent 4d30090 commit c32acb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c32acb6

Please sign in to comment.