Skip to content

Commit abcf56f

Browse files
committed
Use different filename for dmg
1 parent e403fc8 commit abcf56f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/dev/build_release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,10 @@ def build_mac(
302302
dmg_makefile_path = REPO_ROOT / "scripts" / "dev" / "Makefile-dmg"
303303
subprocess.run(['make', '-f', dmg_makefile_path], check=True)
304304

305+
arch = platform.machine()
305306
suffix = "-debug" if debug else ""
306307
suffix += "-qt5" if qt5 else ""
308+
suffix += f"-{arch}"
307309
dmg_path = dist_path / f'qutebrowser-{qutebrowser.__version__}{suffix}.dmg'
308310
pathlib.Path('qutebrowser.dmg').rename(dmg_path)
309311

@@ -324,7 +326,7 @@ def build_mac(
324326
print(f"Failed to remove tempdir: {e}")
325327

326328
arch_to_desc = {"x86_64": "Intel", "arm64": "Apple Silicon"}
327-
desc_arch = arch_to_desc[platform.machine()]
329+
desc_arch = arch_to_desc[arch]
328330

329331
return [
330332
Artifact(

0 commit comments

Comments
 (0)