Skip to content

Commit

Permalink
Merge pull request #21 from tmck-code/osx-m1-binary
Browse files Browse the repository at this point in the history
  • Loading branch information
tmck-code authored Mar 27, 2022
2 parents 7b7dd21 + 8c45b45 commit a601b65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A (much) faster go version of tmck-code/pokesay
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash darwin amd64
```
- OSX / darwin (M1)
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash darwin arm64
```
- Linux x64
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash linux amd64
Expand Down
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN go build src/pokedex.go && \
./pokedex -from /tmp/cows/ -to build/cows.gob

RUN echo "building darwin / amd64" && GOOS=darwin GOARCH=amd64 go build -o pokesay-darwin-amd64 pokesay.go && \
echo "building darwin / arm64" && GOOS=darwin GOARCH=arm64 go build -o pokesay-darwin-arm64 pokesay.go && \
echo "building linux / amd64" && GOOS=linux GOARCH=amd64 go build -o pokesay-linux-amd64 pokesay.go && \
echo "building windows / amd64" && GOOS=windows GOARCH=amd64 go build -o pokesay-windows-amd64.exe pokesay.go && \
echo "building android / arm64" && GOOS=android GOARCH=arm64 go build -o pokesay-android-arm64 pokesay.go
1 change: 1 addition & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build/release:
@docker create --name pokesay pokesay-go:latest
docker cp pokesay:/usr/local/src/pokesay-linux-amd64 .
docker cp pokesay:/usr/local/src/pokesay-darwin-amd64 .
docker cp pokesay:/usr/local/src/pokesay-darwin-arm64 .
docker cp pokesay:/usr/local/src/pokesay-windows-amd64.exe .
docker cp pokesay:/usr/local/src/pokesay-android-arm64 .
@docker rm -f pokesay
Expand Down

0 comments on commit a601b65

Please sign in to comment.