Simplify artifact names: -macos-setup.pkg, -linux-setup.AppImage
Arch markers dropped except win64: macOS builds are arm64-only and we ship a single Linux flavor.
This commit is contained in:
@@ -9,7 +9,7 @@ Netflix style browsing of your local media archive. Supports keyboard, mouse and
|
||||
## Getting Started
|
||||
|
||||
- Windows: Download `*-win64-setup.exe` from the releases page and run it (no admin needed; auto-updates included). A `-win64-portable.zip` is also available.
|
||||
- macOS: Download `*-macos-arm64-setup.pkg` and install (auto-updates included).
|
||||
- macOS: Download `*-macos-setup.pkg` and install (auto-updates included).
|
||||
- Linux: Download the `.AppImage`, `chmod +x` it, and run. Alternatively install [UV](https://docs.astral.sh/uv/getting-started/installation/) and run directly with `uvx --from mediahive[gui] mediahive`.
|
||||
|
||||
## What It Does
|
||||
|
||||
+4
-10
@@ -64,19 +64,13 @@ _VPK_STAGING = _build_cache_dir() / f"vpk-{_VPK_VERSION}"
|
||||
|
||||
|
||||
def _platform_zip_suffix() -> str:
|
||||
machine = platform.machine().lower()
|
||||
arch = {
|
||||
"x86_64": "x64",
|
||||
"amd64": "x64",
|
||||
"arm64": "arm64",
|
||||
"aarch64": "arm64",
|
||||
}.get(machine, machine or "unknown")
|
||||
|
||||
# Only Windows keeps an arch marker (win64); macOS is arm64-only and we
|
||||
# build just one Linux flavor, so -macos / -linux suffice.
|
||||
if sys.platform == "win32":
|
||||
return "win64"
|
||||
if sys.platform == "darwin":
|
||||
return f"macos-{arch}"
|
||||
return f"linux-{arch}"
|
||||
return "macos"
|
||||
return "linux"
|
||||
|
||||
|
||||
def fetch_ffmpeg() -> Path:
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ def load_token() -> str:
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Matches MediaHive-1.2.3-win64-portable.zip, MediaHive-1.2.3-win64-setup.exe,
|
||||
# MediaHive-1.2.3-macos-arm64-setup.pkg, MediaHive-1.2.3-linux-x64.AppImage, etc.
|
||||
# MediaHive-1.2.3-macos-setup.pkg, MediaHive-1.2.3-linux-setup.AppImage, etc.
|
||||
# Rejects dev/dirty versions like MediaHive-1.2.3.dev0+gabcd-win64-portable.zip
|
||||
_CLEAN_ARTIFACT_RE = re.compile(
|
||||
r"^MediaHive-(\d+(?:\.\d+)*)-([A-Za-z0-9._-]+)\.(?:zip|dmg|exe|pkg|AppImage)$"
|
||||
|
||||
Reference in New Issue
Block a user