From 997301a89c5d3ca5b7a8cd5f06ad2c02a1e96e5c Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 9 Oct 2023 18:24:14 -0700 Subject: [PATCH] Update file extension used by create_release script This should have been part of #1235 --- emsdk.py | 2 +- scripts/update_bazel_workspace.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/emsdk.py b/emsdk.py index f1079dd64d..e0e46b9040 100644 --- a/emsdk.py +++ b/emsdk.py @@ -2101,7 +2101,7 @@ def make_url(ext): ) for release in recent_releases: - make_url('tbz2' if not WINDOWS else 'zip') + make_url('tar.xz' if not WINDOWS else 'zip') try: urlopen(make_url('tar.xz' if not WINDOWS else 'zip')) except: diff --git a/scripts/update_bazel_workspace.py b/scripts/update_bazel_workspace.py index 932cc72e35..874b49b8a2 100755 --- a/scripts/update_bazel_workspace.py +++ b/scripts/update_bazel_workspace.py @@ -39,9 +39,9 @@ def revisions_item(version, latest_hash): return f'''\ "{version}": struct( hash = "{latest_hash}", - sha_linux = "{get_sha('linux', 'tbz2', latest_hash)}", - sha_mac = "{get_sha('mac', 'tbz2', latest_hash)}", - sha_mac_arm64 = "{get_sha('mac', 'tbz2', latest_hash, '-arm64')}", + sha_linux = "{get_sha('linux', 'tar.xz', latest_hash)}", + sha_mac = "{get_sha('mac', 'tar.xz', latest_hash)}", + sha_mac_arm64 = "{get_sha('mac', 'tar.xz', latest_hash, '-arm64')}", sha_win = "{get_sha('win', 'zip', latest_hash)}", ), '''