1 Commits
Author SHA1 Message Date
LeoVasanko 24532e2947 Remove dead DMG asset handling from release script 2026-09-27 00:21:04 +00:00
+1 -2
View File
@@ -74,7 +74,7 @@ def load_token() -> str:
# MediaHive-win64-portable.zip) so /releases/download/latest/<name> links
# stay valid. The version comes from setuptools_scm instead.
_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)
mime = {
".zip": "application/zip",
".dmg": "application/x-apple-diskimage",
}.get(path.suffix, "application/octet-stream")
print(f"Uploading {path.name} ({size_mb:.1f} MB) ...")
with Path(path).open("rb") as fh: