forked from TrueCloudLab/rclone
Be explicit about which arch we support which fixes failure to build with new gox
This commit is contained in:
parent
67d0375b98
commit
9ec06df79f
1 changed files with 26 additions and 2 deletions
|
@ -16,10 +16,34 @@ rm -rf build
|
||||||
# Disable CGO and dynamic builds on all platforms (including build patform)
|
# Disable CGO and dynamic builds on all platforms (including build patform)
|
||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
gox --ldflags "-s -X github.com/ncw/rclone/fs.Version=${VERSION}" -output "build/{{.Dir}}-${VERSION}-{{.OS}}-{{.Arch}}/{{.Dir}}" -os "darwin linux freebsd openbsd windows freebsd netbsd plan9 solaris"
|
# Arch pairs we build for
|
||||||
# Not implemented yet: nacl dragonfly android
|
|
||||||
# gox -osarch-list for definitive list
|
# gox -osarch-list for definitive list
|
||||||
|
|
||||||
|
OSARCH="\
|
||||||
|
windows/386
|
||||||
|
windows/amd64
|
||||||
|
darwin/386
|
||||||
|
darwin/amd64
|
||||||
|
linux/386
|
||||||
|
linux/amd64
|
||||||
|
linux/arm
|
||||||
|
freebsd/386
|
||||||
|
freebsd/amd64
|
||||||
|
freebsd/arm
|
||||||
|
netbsd/386
|
||||||
|
netbsd/amd64
|
||||||
|
netbsd/arm
|
||||||
|
openbsd/386
|
||||||
|
openbsd/amd64
|
||||||
|
plan9/386
|
||||||
|
plan9/amd64
|
||||||
|
solaris/amd64"
|
||||||
|
|
||||||
|
# Make space separated
|
||||||
|
OSARCH=${OSARCH//$'\n'/ }
|
||||||
|
|
||||||
|
gox --ldflags "-s -X github.com/ncw/rclone/fs.Version=${VERSION}" -output "build/{{.Dir}}-${VERSION}-{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch "${OSARCH}"
|
||||||
|
|
||||||
mv build/rclone-${VERSION}-darwin-amd64 build/rclone-${VERSION}-osx-amd64
|
mv build/rclone-${VERSION}-darwin-amd64 build/rclone-${VERSION}-osx-amd64
|
||||||
mv build/rclone-${VERSION}-darwin-386 build/rclone-${VERSION}-osx-386
|
mv build/rclone-${VERSION}-darwin-386 build/rclone-${VERSION}-osx-386
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue