diff --git a/.gitignore b/.gitignore index 29be559..7e91d2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ defaults/ myip myip_* +go-myip diff --git a/README.md b/README.md index da2deab..aabc119 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,14 @@ Choose your OS here: https://github.com/kitsuyui/go-myip/releases # Build ```console +$ go get github.com/jteeuwen/go-bindata/... $ go generate +$ go get -d ./... $ go build ``` ## with Docker ```console -$ docker run --rm -v "$(pwd)":/myip -w /myip tcnksm/gox sh -c "go get -d ./... && gox -ldflags '-w -s'" +$ docker run --rm -v "$(pwd)":/myip -w /myip tcnksm/gox sh -c "./build.sh" ``` diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..11e6a34 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +go get github.com/jteeuwen/go-bindata/... +go generate +go get -d ./... +gox -ldflags '-w -s'