diff --git a/make b/make index 5f072ed..d29cc99 100755 --- a/make +++ b/make @@ -1,37 +1,37 @@ #!/bin/bash -# echo "Making Linux x64 binary..." -# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/linux/amd64/cybr . -# echo "Compressing Linux x64 binary into .tar.gz..." -# pushd ./bin/linux/amd64 || exit -# tar -czf cybr-cli_linux_amd64.tar.gz cybr -# md5 -qs cybr-cli_linux_amd64.tar.gz > cybr-cli_linux_amd64.tar.gz.md5 -# popd || exit -# echo "Making Linux ARM binary..." -# CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./bin/linux/arm64/cybr . -# echo "Compressing Linux ARM binary into .tar.gz..." -# pushd ./bin/linux/arm64 || exit -# tar -czf cybr-cli_linux_arm64.tar.gz cybr -# md5 -qs cybr-cli_linux_arm64.tar.gz > cybr-cli_linux_arm64.tar.gz.md5 -# popd || exit +echo "Making Linux x64 binary..." +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/linux/amd64/cybr . +echo "Compressing Linux x64 binary into .tar.gz..." +pushd ./bin/linux/amd64 || exit + tar -czf cybr-cli_linux_amd64.tar.gz cybr + md5 -qs cybr-cli_linux_amd64.tar.gz > cybr-cli_linux_amd64.tar.gz.md5 +popd || exit +echo "Making Linux ARM binary..." +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./bin/linux/arm64/cybr . +echo "Compressing Linux ARM binary into .tar.gz..." +pushd ./bin/linux/arm64 || exit + tar -czf cybr-cli_linux_arm64.tar.gz cybr + md5 -qs cybr-cli_linux_arm64.tar.gz > cybr-cli_linux_arm64.tar.gz.md5 +popd || exit echo "Making Darwin x64 binary..." CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./bin/darwin/amd64/cybr . echo "Requires notarization with Apple... [$PWD/bin/notarize.sh]" echo "Making Darwin ARM binary..." CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o ./bin/darwin/arm64/cybr . echo "Requires notarization with Apple... [$PWD/bin/notarize.sh]" -# echo "Making Windows x64 binary..." -# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./bin/windows/amd64/cybr.exe . -# echo "Compressing Windows x64 binary into .zip..." -# pushd ./bin/windows/amd64 || exit -# zip -r cybr-cli_windows_amd64.zip cybr.exe -# md5 -qs cybr-cli_windows_amd64.zip > cybr-cli_windows_amd64.zip.md5 -# popd || exit -# echo "Making Windows ARM binary..." -# CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o ./bin/windows/arm64/cybr.exe . -# echo "Compressing Windows ARM binary into .zip..." -# pushd ./bin/windows/arm64 || exit -# zip -r cybr-cli_windows_arm64.zip cybr.exe -# md5 -qs cybr-cli_windows_arm64.zip > cybr-cli_windows_arm64.zip.md5 -# popd || exit +echo "Making Windows x64 binary..." +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./bin/windows/amd64/cybr.exe . +echo "Compressing Windows x64 binary into .zip..." +pushd ./bin/windows/amd64 || exit + zip -r cybr-cli_windows_amd64.zip cybr.exe + md5 -qs cybr-cli_windows_amd64.zip > cybr-cli_windows_amd64.zip.md5 +popd || exit +echo "Making Windows ARM binary..." +CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o ./bin/windows/arm64/cybr.exe . +echo "Compressing Windows ARM binary into .zip..." +pushd ./bin/windows/arm64 || exit + zip -r cybr-cli_windows_arm64.zip cybr.exe + md5 -qs cybr-cli_windows_arm64.zip > cybr-cli_windows_arm64.zip.md5 +popd || exit echo "Finished making - files output to directories in $PWD/bin" \ No newline at end of file