#!/bin/bash
set -x

BIN=4to6 


CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BIN}-linux-amd64 -a -ldflags '-extldflags "-static"' && upx -9 ${BIN}-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ${BIN}-linux-arm64 -a -ldflags '-extldflags "-static"' && upx -9 ${BIN}-linux-arm64
