add support for building arm64 binaries
This commit is contained in:
parent
5425b38083
commit
4ce0d91ae2
|
@ -12,7 +12,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
# Determine the arch/os combos we're building for
|
# Determine the arch/os combos we're building for
|
||||||
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
XC_ARCH=${XC_ARCH:-"386 amd64 arm arm64"}
|
||||||
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd}
|
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd}
|
||||||
|
|
||||||
# Delete the old dir
|
# Delete the old dir
|
||||||
|
@ -27,6 +27,7 @@ set +e
|
||||||
gox \
|
gox \
|
||||||
-os="${XC_OS}" \
|
-os="${XC_OS}" \
|
||||||
-arch="${XC_ARCH}" \
|
-arch="${XC_ARCH}" \
|
||||||
|
-osarch="!darwin/arm !darwin/arm64" \
|
||||||
-ldflags "${GOLDFLAGS}" \
|
-ldflags "${GOLDFLAGS}" \
|
||||||
-output "pkg/{{.OS}}_{{.Arch}}/packer" \
|
-output "pkg/{{.OS}}_{{.Arch}}/packer" \
|
||||||
.
|
.
|
||||||
|
|
Loading…
Reference in New Issue