Skip to content
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

feat: support macOS arm64 chip #68

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## Unreleased

- Add support for MacOS arm64 architecture

## v1.2.1

### Changed
Expand Down
8 changes: 4 additions & 4 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,19 @@ function getGethURI(platform, arch, version, versionCommitHash) {
return `https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-arm64-${version}-${shortHash}.tar.gz`
}

throw new Error('Unsupported linux architecture')
throw new Error(`Unsupported linux architecture '${arch}'.`)
}

case 'darwin': {
switch (arch) {
case 'x64':
return `https://gethstore.blob.core.windows.net/builds/geth-alltools-darwin-amd64-${version}-${shortHash}.tar.gz`

case 'arm64':
return `https://gethstore.blob.core.windows.net/builds/geth-alltools-darwin-arm64-${version}-${shortHash}.tar.gz`;
}

throw new Error('Unsupported MacOS architecture')
throw new Error(`Unsupported MacOS architecture '${arch}'.`)
}

case 'win32': {
Expand All @@ -191,7 +194,7 @@ function getGethURI(platform, arch, version, versionCommitHash) {
return `https://gethstore.blob.core.windows.net/builds/geth-alltools-windows-386-${version}-${shortHash}.zip`
}

throw new Error('Unsupported windows architecture')
throw new Error(`Unsupported windows architecture '${arch}'.`)
}
}

Expand Down
Loading
Loading