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