customrealms / cli

Command line tools for creating and compiling JavaScript Minecraft plugins.
https://customrealms.io
MIT License
9 stars 3 forks source link

Added ARM64 #5

Closed FalcoG closed 2 years ago

FalcoG commented 2 years ago

This will add support for arm64 and also display the architecture during the npm install phase.

Should resolve https://github.com/customrealms/cli/issues/4

connerdouglass commented 2 years ago

I think one more thing is needed. .goreleaser.yml needs to have a build section added for darwin-arm64. You can just copy and paste thedarwin-amd64 one and replace amd64 with arm64, then you're (probably) good to go!

FalcoG commented 2 years ago

Got it, config should now be good - ran it locally and it made the necessary files in dist/.

Also tested the binary by using go build -o crx cmd/crx/main.go && sudo cp crx /usr/local/bin/ and $ crx worked just fine.

connerdouglass commented 2 years ago

@FalcoG Your PR was just published as @customrealms/cli version 0.4.10. Please make sure the following commands work on your Apple Silicon computer:

npm install -g @customrealms/cli@0.4.10
crx version

It should say it's version 0.4.10

Thanks!

FalcoG commented 2 years ago

@connerdouglass thanks for updating it!

The latest version works;

falco@Falcos-Mac-mini ~ % npm install -g @customrealms/cli@0.4.10

added 1 package, changed 1 package, and audited 3 packages in 6s

found 0 vulnerabilities
falco@Falcos-Mac-mini ~ % crx version
customrealms-cli (crx) v0.4.10