-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm64 Mac download needed #176
Comments
arm64 builds are available on brew. using it currently on M1 |
Hi. Came across the same issue and DID NOT want to use Homebrew. Here is my workaround... somewhat overkill as it can be used to rebuild all targets. I only used the #! /bin/ksh
typeset version="0.4.0"
# Download the master repository (or the release tarball as desired)
git clone https://github.com/ericchiang/pup pup-$version
cd pup-$version
[[ -d dist ]] && rm -rf dist; mkdir dist
# Get all dependencies
for dependency in \
github.com/{fatih/color,mattn/go-colorable} \
golang.org/x/{net/{html,html/atom,html/charset},text/transform}
do GO111MODULE=auto go get $dependency; done
# List all platforms (exception list taken from release.sh)
go tool dist list | sed '/android|darwin\/arm|s390x|plan9\/arm/d; s/\// /' |\
while read os arch; do
# Construct the target binary's name
typeset binary=pup; [[ $os == windows ]] && binary+=.exe
typeset arname=pup-$version-$os-$arch
[[ $os == @(darwin|linux) && $arch == @(arm|amd)64 ]] || continue
print -- "- building for operating system\`$os\` running on a \`$arch\` architecture"
#go -- build -v -a -o dist/$binary github.com/ericchiang/pup &&
GO111MODULE=auto GOOS=$os GOOARC=$arch CGO_ENABLED=0 \
go build -v -a -o dist/$binary 1>&2 2>dist/$arname.log &&
(cd dist; tar zcf $arname.tgz $binary && rm $binary)
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At https://github.com/ericchiang/pup/releases/tag/v0.4.0 there are downloads for i386 and x86_64 Macs but not arm64 Macs.
The text was updated successfully, but these errors were encountered: