Fix doubled platformdirs paths; pick newest dotnet runtime
appauthor=False/opinion=False avoids mediahive\mediahive\Cache style paths on Windows. fetch_dotnet now probes all known dotnet locations and selects the highest Microsoft.NETCore.App major, requiring the version vpk's TFM targets (10) — PATH on the Windows CI runner resolves to a runtime-only .NET 8 while scoop holds the SDK 10.
This commit is contained in:
@@ -24,7 +24,9 @@ _icon_mac = _pkg / "assets" / "mediahive.icns"
|
||||
# scripts/guibuild.py); fall back to the legacy build/ffmpeg location.
|
||||
from platformdirs import user_cache_path
|
||||
|
||||
_tools_dir = user_cache_path("mediahive-build") / "ffmpeg"
|
||||
_tools_dir = (
|
||||
user_cache_path("mediahive-build", appauthor=False, opinion=False) / "ffmpeg"
|
||||
)
|
||||
if not _tools_dir.exists():
|
||||
_tools_dir = Path(SPECPATH).parent / "build" / "ffmpeg"
|
||||
_tool_names = ["ffmpeg.exe"] if sys.platform == "win32" else ["ffmpeg"]
|
||||
|
||||
Reference in New Issue
Block a user