Wrote script to create release builds
parent
b65cef96c3
commit
f8cb03bf88
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
POSSIBLE_GOOS=( "windows" "linux" "darwin" )
|
||||
POSSIBLE_GOARCH=( "amd64" "arm64" )
|
||||
|
||||
for OS in "${POSSIBLE_GOOS[@]}"; do
|
||||
for ARCH in "${POSSIBLE_GOARCH[@]}"; do
|
||||
FOLDER_NAME="ccat-$OS-$ARCH"
|
||||
mkdir "${FOLDER_NAME}"
|
||||
GOOS=$OS GOARCH=$ARCH go build -o "${FOLDER_NAME}/"
|
||||
zip -r "${FOLDER_NAME}" "${FOLDER_NAME}"
|
||||
rm -r "${FOLDER_NAME}"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue