Installers for all platforms and related fixes #1

Merged
LeoVasanko merged 38 commits from installer into main 2026-09-23 17:41:21 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit e8d2c5773a - Show all commits
+4
View File
@@ -978,6 +978,10 @@ def _show_fatal_error(exc: BaseException) -> None:
def gui_main() -> None: def gui_main() -> None:
"""Run the GUI, rendering fatal exceptions as a TraceRite HTML window.""" """Run the GUI, rendering fatal exceptions as a TraceRite HTML window."""
# Velopack runs the app with --veloapp-* hook arguments during install,
# update, and uninstall; these must exit fast instead of starting the GUI.
if any(arg.startswith("--veloapp-") for arg in sys.argv[1:]):
return
try: try:
winmain() winmain()
except Exception as exc: except Exception as exc:
+3
View File
@@ -338,6 +338,9 @@ def create_zip(version: str) -> Path:
raise FileNotFoundError(f"Distribution folder not found: {dist_folder}") raise FileNotFoundError(f"Distribution folder not found: {dist_folder}")
zip_name = f"MediaHive-{version}-{_platform_zip_suffix()}.zip" zip_name = f"MediaHive-{version}-{_platform_zip_suffix()}.zip"
if sys.platform == "win32":
# Distinguish from the Velopack installer (MediaHive-*-win64-setup.exe)
zip_name = zip_name.replace("-win64.zip", "-win64-portable.zip")
zip_path = repo_root / "build" / zip_name zip_path = repo_root / "build" / zip_name
zip_path.parent.mkdir(parents=True, exist_ok=True) zip_path.parent.mkdir(parents=True, exist_ok=True)