diff --git a/emsdk.py b/emsdk.py index 697f753..55d47b8 100644 --- a/emsdk.py +++ b/emsdk.py @@ -42,7 +42,7 @@ emsdk_packages_url = 'https://storage.googleapis.com/webassembly/emscripten-rele emscripten_releases_repo = 'https://chromium.googlesource.com/emscripten-releases' -emscripten_releases_download_url_template = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries.%s" +emscripten_releases_download_url_template = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries%s.%s" # This was previously `master.zip` but we are transitioning to `main` and # `HEAD.zip` works for both cases. In future we could switch this to @@ -2166,10 +2166,14 @@ def get_emscripten_releases_tot(): # The recent releases are the latest hashes in the git repo. There # may not be a build for the most recent ones yet; find the last # that does. + arch = '' + if ARCH == 'aarch64': + arch = '-arm64' for release in recent_releases: url = emscripten_releases_download_url_template % ( os_name(), release, + arch, 'tbz2' if not WINDOWS else 'zip' ) try: diff --git a/emsdk_manifest.json b/emsdk_manifest.json index 281244f..345b2f3 100644 --- a/emsdk_manifest.json +++ b/emsdk_manifest.json @@ -108,6 +108,7 @@ "bitness": 64, "arch": "aarch64", "macos_url": "https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/%releases-tag%/wasm-binaries-arm64.tbz2", + "linux_url": "https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/%releases-tag%/wasm-binaries-arm64.tbz2", "zipfile_prefix": "%releases-tag%-", "install_path": "upstream", "activated_path": "%installation_dir%/emscripten",