Skip to content

Commit

Permalink
Support new arm64 Windows releases (#87)
Browse files Browse the repository at this point in the history
Blender 4.3 includes arm64 builds for Windows, which caused the arm64
build to always be downloaded. Now, use `--arch` option for Windows
releases and defaults to x64.
  • Loading branch information
alexguirre authored Nov 20, 2024
1 parent 56a6315 commit 871d336
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/blender_downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,15 @@ def _build_download_repo_release_file_validator(
if operative_system == 'windows':

def valid_release_file(filename):
if major_minor_blender_Version >= BlenderVersion('4.3'):
# from v4.3, Blender supports arm64 builds for Windows
if arch in {'x64', 'arm64'}:
if not filename.endswith(f'{arch}.zip'):
return False
elif not filename.endswith('x64.zip'):
return False
# without 32 bits support
if major_minor_blender_Version > BlenderVersion('2.80'):
elif major_minor_blender_Version > BlenderVersion('2.80'):
if not filename.endswith('.zip'):
return False
elif not filename.endswith(f'{bits}.zip'):
Expand Down

0 comments on commit 871d336

Please sign in to comment.