scripts: Fix build_release on Windows with --skip-32bit

This commit is contained in:
Florian Bruhin 2021-01-26 18:32:44 +01:00
parent 40a118f5ab
commit 3199efbe29
1 changed files with 1 additions and 1 deletions

View File

@ -330,6 +330,7 @@ def _package_windows(out_32, out_64):
'application/vnd.microsoft.portable-executable',
'Windows 64bit installer'),
]
template = 'qutebrowser-{}-windows-standalone-{}'
if out_32 is not None:
name_32 = 'qutebrowser-{}-win32.exe'.format(qutebrowser.__version__)
@ -340,7 +341,6 @@ def _package_windows(out_32, out_64):
]
utils.print_title("Zipping 32bit standalone...")
template = 'qutebrowser-{}-windows-standalone-{}'
name = os.path.join('dist',
template.format(qutebrowser.__version__, 'win32'))
shutil.make_archive(name, 'zip', 'dist', os.path.basename(out_32))