-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed my mind on removing linux & windows from make
- Loading branch information
1 parent
688274e
commit 8c974ff
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |