Switch to HEAD.zip when downloading archive from github. (#806)

This works regardless of the name of the primary branch so that
the code will continue to work if/when we rename `main` to `master`.

See: #805
This commit is contained in:
Sam Clegg
2021-04-29 15:48:18 -07:00
committed by GitHub
parent b4c9194d81
commit 894c25b52a

View File

@@ -44,7 +44,10 @@ emscripten_releases_repo = 'https://chromium.googlesource.com/emscripten-release
emscripten_releases_download_url_template = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries.%s"
emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/master.zip'
# 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
# `main.zip` perhaps.
emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/HEAD.zip'
zips_subdir = 'zips/'