build-release: Fix handling of Windows .zip suffix

This commit is contained in:
Florian Bruhin 2022-06-22 15:56:17 +02:00
parent 4e5b1d287d
commit 208e56f0e9
1 changed files with 3 additions and 3 deletions

View File

@ -512,12 +512,12 @@ def _package_windows_single(
]
if debug:
zip_name_parts.append('debug')
zip_name = '-'.join(zip_name_parts)
zip_name = '-'.join(zip_name_parts) + '.zip'
zip_path = dist_path / zip_name
shutil.make_archive(str(zip_path), 'zip', 'dist', out_path.name)
shutil.make_archive(str(zip_path.with_suffix('')), 'zip', 'dist', out_path.name)
artifacts.append(Artifact(
path=zip_path.with_suffix(".zip"),
path=zip_path,
mimetype='application/zip',
description=f'Windows {desc_arch} standalone{desc_suffix}',
))