GithubHelp home page GithubHelp logo

arm64 Mac download needed about pup HOT 2 OPEN

ryandesign avatar ryandesign commented on September 16, 2024
arm64 Mac download needed

from pup.

Comments (2)

watbulb avatar watbulb commented on September 16, 2024

arm64 builds are available on brew. using it currently on M1

from pup.

marcastel avatar marcastel commented on September 16, 2024

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/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

from pup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.