Skip to content

Commit

Permalink
changed my mind on removing linux & windows from make
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Nov 11, 2022
1 parent 688274e commit 8c974ff
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions make
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 8c974ff

Please sign in to comment.