From d0971be12e2c77c8bb4e3bd34ec650a70bebca52 Mon Sep 17 00:00:00 2001 From: PyryM Date: Fri, 4 Oct 2024 14:44:27 -0400 Subject: [PATCH] try to fetch correct windows wgpu release zip --- codegen/fetch_wgpu_bins.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codegen/fetch_wgpu_bins.py b/codegen/fetch_wgpu_bins.py index fbe8d44..ec1e19b 100644 --- a/codegen/fetch_wgpu_bins.py +++ b/codegen/fetch_wgpu_bins.py @@ -81,6 +81,12 @@ def __init__(self, src: str, dest: Optional[str]=None): def fix_name(name: str) -> str: return ALIASES.get(name, name) +def fix_arch(name: str) -> str: + if IS_WINDOWS: + return fix_name(name) + "-msvc" + else: + return fix_name(name) + BASE_URL = "https://github.com/gfx-rs/wgpu-native/releases/download/" VERSION = "22.1.0.5" @@ -88,7 +94,7 @@ def fix_name(name: str) -> str: SYSNAME = uname().system.lower() IS_WINDOWS = SYSNAME == "windows" or ("microsoft" in uname().release.lower()) OS = fix_name("windows" if IS_WINDOWS else SYSNAME) -ARCH = fix_name(uname().machine.lower()) +ARCH = fix_arch(uname().machine.lower()) def make_url(osname: str, arch: str) -> str: