Skip to content

Commit 11a7925

Browse files
committed
fix universal binary support for arm
1 parent ce2bcda commit 11a7925

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

checksum/checksum.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ func WithOS(os string) ValidatorOption {
119119
}
120120

121121
var fallbackArchMap = map[string][]string{
122-
"amd64": {"x86_64", "all"},
122+
"amd64": {"x86_64"},
123123
"386": {"i386", "all"},
124+
"arm64": {"all"},
124125
}
125126

126127
func WithArch(a string) ValidatorOption {

upgrade.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ func NewUpgrader(owner string, repo string, executablePath string, opts ...Opt)
5858
executablePath: executablePath,
5959
releaseGetter: release.NewReleaseGetter(repo, owner),
6060
assetDownloader: asset.NewAssetDownloader(executablePath, asset.WithLookupArchFallback(map[string][]string{
61-
"amd64": {"x86_64", "all"},
61+
"amd64": {"x86_64"},
6262
"386": {"i86", "all"},
63+
"arm64": {"all"},
6364
})),
6465
checksumDownloader: checksum.NewCheckSumDownloader(),
6566
checksumValidator: checksum.NewCheckSumValidator(),

0 commit comments

Comments
 (0)