[mike@mwxm4]
This commit is contained in:
+6
-6
@@ -9,22 +9,22 @@ VERSION_LINE=$(grep "var Version =" version.go)
|
||||
VERSION=$(echo "$VERSION_LINE" | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
|
||||
echo "🛠️ Compiling release binaries for version v$VERSION..."
|
||||
mkdir -p dist
|
||||
mkdir -p bin
|
||||
|
||||
# macOS Intel
|
||||
echo "🍏 Building macOS Intel (amd64)..."
|
||||
GOOS=darwin GOARCH=amd64 go build -o dist/goca-darwin-amd64
|
||||
GOOS=darwin GOARCH=amd64 go build -o bin/goca-darwin-amd64
|
||||
|
||||
# macOS Apple Silicon
|
||||
echo "🍏 Building macOS Apple Silicon (arm64)..."
|
||||
GOOS=darwin GOARCH=arm64 go build -o dist/goca-darwin-arm64
|
||||
GOOS=darwin GOARCH=arm64 go build -o bin/goca-darwin-arm64
|
||||
|
||||
# Linux Intel
|
||||
echo "🐧 Building Linux Intel (amd64)..."
|
||||
GOOS=linux GOARCH=amd64 go build -o dist/goca-linux-amd64
|
||||
GOOS=linux GOARCH=amd64 go build -o bin/goca-linux-amd64
|
||||
|
||||
# Windows Intel
|
||||
echo "🏁 Building Windows Intel (amd64)..."
|
||||
GOOS=windows GOARCH=amd64 go build -o dist/goca-windows-amd64.exe
|
||||
GOOS=windows GOARCH=amd64 go build -o bin/goca-windows-amd64.exe
|
||||
|
||||
echo "🎉 All release binaries built in dist/!"
|
||||
echo "🎉 All release binaries built in bin/!"
|
||||
|
||||
Reference in New Issue
Block a user