gpu-dawn: add mirror support for headers.json.gz

This commit is contained in:
Cai Bingjun 2022-09-18 08:57:26 +08:00 committed by Stephen Gutekanst
parent 412df4490c
commit 308d413f09

View file

@ -364,7 +364,8 @@ pub fn Sdk(comptime deps: anytype) type {
// Compose the headers download URL, e.g.: // Compose the headers download URL, e.g.:
// https://github.com/hexops/mach-gpu-dawn/releases/download/release-6b59025/headers.json.gz // https://github.com/hexops/mach-gpu-dawn/releases/download/release-6b59025/headers.json.gz
const headers_download_url = try std.mem.concat(allocator, u8, &.{ const headers_download_url = try std.mem.concat(allocator, u8, &.{
"https://github.com/hexops/mach-gpu-dawn/releases/download/", github_base_url,
"/hexops/mach-gpu-dawn/releases/download/",
version, version,
"/headers.json.gz", "/headers.json.gz",
}); });