We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0075b2 commit bd49254Copy full SHA for bd49254
crosscompile.sh
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+for target in darwin:amd64 linux:amd64 linux:386 linux:arm windows:amd64; do
4
+ echo "Compiling $target"
5
+ export GOOS=$(echo $target | cut -d: -f1) GOARCH=$(echo $target | cut -d: -f2)
6
+ bash -c "go build -o $(basename $(echo $PWD))_${GOOS}_${GOARCH} ."
7
+done
0 commit comments