summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-29 16:28:47 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-03-29 23:42:14 +0200
commit78ce753b0962791ef42a1bb2c3e83150e3956f59 (patch)
tree6d9fe6c4895b09e124b859d28631734692fcc7c8 /scripts
parent99f419c97dc79fafa5330e2d8c7335a45a4714ca (diff)
downloadqutebrowser-78ce753b0962791ef42a1bb2c3e83150e3956f59.tar.gz
qutebrowser-78ce753b0962791ef42a1bb2c3e83150e3956f59.zip
ci: Move macOS dmg to dist/
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/build_release.py8
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):