From 1d61539bd4f35c88b676fb6402d1b1c7a014d2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=88zgu=CC=88n=20C=CC=A7ag=CC=86r=C4=B1=20AYDIN?= Date: Fri, 17 May 2019 16:36:51 +0300 Subject: [PATCH] Build script added and outputs exluded from git --- .gitignore | 3 ++- builder.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 builder.sh diff --git a/.gitignore b/.gitignore index a369648..950481b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode -passgen \ No newline at end of file +passgen +build \ No newline at end of file diff --git a/builder.sh b/builder.sh new file mode 100755 index 0000000..fca5a6e --- /dev/null +++ b/builder.sh @@ -0,0 +1,11 @@ +env GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o build/passgen +zip build/passgen_darwin_amd64.zip build/passgen +rm build/passgen + +env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/passgen +zip build/passgen_linux_amd64.zip build/passgen +rm build/passgen + +env GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build/passgen.exe +zip build/passgen_windows_amd64.zip build/passgen.exe +rm build/passgen.exe \ No newline at end of file