diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-29 16:28:47 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-29 23:42:14 +0200 |
commit | 78ce753b0962791ef42a1bb2c3e83150e3956f59 (patch) | |
tree | 6d9fe6c4895b09e124b859d28631734692fcc7c8 /scripts | |
parent | 99f419c97dc79fafa5330e2d8c7335a45a4714ca (diff) | |
download | qutebrowser-78ce753b0962791ef42a1bb2c3e83150e3956f59.tar.gz qutebrowser-78ce753b0962791ef42a1bb2c3e83150e3956f59.zip |
ci: Move macOS dmg to dist/
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/build_release.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 413739413..83a273c77 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -294,14 +294,14 @@ def build_mac(*, gh_token): utils.print_title("Building .dmg") subprocess.run(['make', '-f', 'scripts/dev/Makefile-dmg'], check=True) - dmg_name = 'qutebrowser-{}.dmg'.format(qutebrowser.__version__) - os.rename('qutebrowser.dmg', dmg_name) + dmg_path = f'dist/qutebrowser-{qutebrowser.__version__}.dmg' + os.rename('qutebrowser.dmg', dmg_path) utils.print_title("Running smoke test") try: with tempfile.TemporaryDirectory() as tmpdir: - subprocess.run(['hdiutil', 'attach', dmg_name, + subprocess.run(['hdiutil', 'attach', dmg_path, '-mountpoint', tmpdir], check=True) try: binary = os.path.join(tmpdir, 'qutebrowser.app', 'Contents', @@ -314,7 +314,7 @@ def build_mac(*, gh_token): except PermissionError as e: print("Failed to remove tempdir: {}".format(e)) - return [(dmg_name, 'application/x-apple-diskimage', 'macOS .dmg')] + return [(dmg_path, 'application/x-apple-diskimage', 'macOS .dmg')] def _get_windows_python_path(x64): |