You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 darmin/arm64 output as this was my requirement; other targets have not been tested.
#! /bin/kshtypeset version="0.4.0"# Download the master repository (or the release tarball as desired)
git clone https://github.com/ericchiang/pup pup-$versioncd pup-$version
[[ -d dist ]] && rm -rf dist; mkdir dist
# Get all dependenciesfordependencyin \
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/\// /'|\
whileread os arch;do# Construct the target binary's nametypeset 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/$binary1>&22>dist/$arname.log &&
(cd dist; tar zcf $arname.tgz $binary&& rm $binary)
done
Activity
watbulb commentedon May 16, 2022
arm64 builds are available on brew. using it currently on M1
marcastel commentedon Dec 28, 2023
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
darmin/arm64output as this was my requirement; other targets have not been tested.