From e955540f715928e36c5449760314590fb09a3f23 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 14 Apr 2017 22:10:45 +0200 Subject: [PATCH] build_release: More fixes --- scripts/dev/build_release.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 2888ed596..118d00175 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -182,11 +182,13 @@ def build_windows(): artifacts = [] utils.print_title("Running pyinstaller 32bit") + _maybe_remove(out_32) call_tox('pyinstaller', '-r', python=python_x86) shutil.move(out_pyinstaller, out_32) patch_windows(out_32) utils.print_title("Running pyinstaller 64bit") + _maybe_remove(out_64) call_tox('pyinstaller', '-r', python=python_x64) shutil.move(out_pyinstaller, out_64) patch_windows(out_64) @@ -209,7 +211,7 @@ def build_windows(): utils.print_title("Zipping 32bit standalone...") name = 'qutebrowser-{}-windows-standalone-win32'.format( qutebrowser.__version__) - shutil.make_archive(name, 'zip', 'dist', out_32) + shutil.make_archive(name, 'zip', 'dist', os.path.basename(out_32)) artifacts.append(('{}.zip'.format(name), 'application/zip', 'Windows 32bit standalone')) @@ -217,7 +219,7 @@ def build_windows(): utils.print_title("Zipping 64bit standalone...") name = 'qutebrowser-{}-windows-standalone-amd64'.format( qutebrowser.__version__) - shutil.make_archive(name, 'zip', 'dist', out_64) + shutil.make_archive(name, 'zip', 'dist', os.path.basename(out_64)) artifacts.append(('{}.zip'.format(name), 'application/zip', 'Windows 64bit standalone'))