Skip to content

Commit 6a5540b

Browse files
authored
Use amd64 architecture on darwin-arm64
1 parent 54cda79 commit 6a5540b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/butler.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,14 @@ function getArch(): string {
6969
arch = "i386";
7070
break;
7171
default:
72-
throw new Error(
73-
`butler is not supported on the ${os.arch()} architecture`,
74-
);
72+
if (getPlatform() == "darwin" && os.arch() == "arm64") {
73+
arch = "amd64";
74+
}
75+
else {
76+
throw new Error(
77+
`butler is not supported on the ${os.arch()} architecture`,
78+
);
79+
}
7580
}
7681

7782
core.info(`Architecture has been discovered as '${arch}'.`);

0 commit comments

Comments
 (0)