diff --git a/.gitignore b/.gitignore index ef6239a..186f77c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -./peirates -dist/peirates-* +/peirates +/dist/peirates-* +/dist/peirates .DS_Store .vscode diff --git a/dist/dist.sh b/dist/dist.sh index 67553e6..2137d45 100755 --- a/dist/dist.sh +++ b/dist/dist.sh @@ -2,7 +2,7 @@ build() { echo "$1" - GOOS=linux GOARCH="$1" go build -i ../cmd/peirates + GOOS=linux GOARCH="$1" go build -ldflags="-s -w" -i ../cmd/peirates mkdir peirates-linux-"$1" mv peirates peirates-linux-"$1" tar cJf peirates-linux-"$1".tar.xz peirates-linux-"$1" @@ -14,7 +14,7 @@ if [ -z $1 ] ; then build amd64 build arm build arm64 - build 386 + build 386 else build $1 fi