Remove dead DMG asset handling from release script

This commit is contained in:
LeoVasanko committed 2026-09-27 00:21:04 +00:00
1 parent 1223b8cee7
commit 24532e2947
1 file changed
+1 -2
+1 -2
View File
@@ -74,7 +74,7 @@ def load_token() -> str:
# MediaHive-win64-portable.zip) so /releases/download/latest/<name> links # MediaHive-win64-portable.zip) so /releases/download/latest/<name> links
# stay valid. The version comes from setuptools_scm instead. # stay valid. The version comes from setuptools_scm instead.
_ARTIFACT_RE = re.compile( _ARTIFACT_RE = re.compile(
r"^MediaHive-(?!\d)[A-Za-z0-9._-]+\.(?:zip|dmg|exe|pkg|AppImage)$" r"^MediaHive-(?!\d)[A-Za-z0-9._-]+\.(?:zip|exe|pkg|AppImage)$"
) )
@@ -212,7 +212,6 @@ def upload_asset(
size_mb = path.stat().st_size / (1024 * 1024) size_mb = path.stat().st_size / (1024 * 1024)
mime = { mime = {
".zip": "application/zip", ".zip": "application/zip",
".dmg": "application/x-apple-diskimage",
}.get(path.suffix, "application/octet-stream") }.get(path.suffix, "application/octet-stream")
print(f"Uploading {path.name} ({size_mb:.1f} MB) ...") print(f"Uploading {path.name} ({size_mb:.1f} MB) ...")
with Path(path).open("rb") as fh: with Path(path).open("rb") as fh: