Skip to content

Commit 41ad77c

Browse files
authored
Merge pull request #1529 from kaleidawave/add-aarch64-apple-darwin-build
Add aarch64 apple darwin build
2 parents 28580a1 + f0a625a commit 41ad77c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@ jobs:
215215
upload_url: ${{ steps.create_release.outputs.upload_url }}
216216
asset_path: ./wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz
217217
asset_content_type: application/gzip
218-
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz
218+
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz

npm/binary.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ const getPlatform = () => {
1818
if (type === "Linux" && arch === "arm64") {
1919
return "aarch64-unknown-linux-musl";
2020
}
21-
if (type === "Darwin" && (arch === "x64" || arch === "arm64")) {
21+
if (type === "Darwin" && arch === "x64") {
2222
return "x86_64-apple-darwin";
2323
}
24+
if (type === "Darwin" && arch === "arm64") {
25+
return "aarch64-apple-darwin";
26+
}
2427

2528
throw new Error(`Unsupported platform: ${type} ${arch}`);
2629
};

0 commit comments

Comments
 (0)