mirror of
https://github.com/Omni-guides/Jackify.git
synced 2026-08-14 02:33:42 +02:00
Release v0.7.2.1 - Mojave Express Support, BSA Decompressor Fix
This commit is contained in:
@@ -130,6 +130,40 @@ class ConfigureModlistCommand:
|
||||
logger.error("VNV post-install automation failed: %s", e, exc_info=True)
|
||||
print(f"{COLOR_WARNING}VNV automation could not be completed. Check logs for details.{COLOR_RESET}")
|
||||
|
||||
# MEW
|
||||
try:
|
||||
from jackify.backend.services.mew_integration_helper import (
|
||||
run_mew_automation_if_applicable,
|
||||
should_offer_mew_automation,
|
||||
)
|
||||
if should_offer_mew_automation(modlist_name, Path(install_dir)):
|
||||
def _confirm_mew(description: str) -> bool:
|
||||
print(f"\n{description}\n")
|
||||
try:
|
||||
ans = input(f"{COLOR_PROMPT}Run MEW post-install automation now? (Y/n): {COLOR_RESET}").strip().lower()
|
||||
except (EOFError, KeyboardInterrupt):
|
||||
return False
|
||||
return ans in ("", "y", "yes")
|
||||
|
||||
from jackify.backend.services.automated_prefix_service import AutomatedPrefixService
|
||||
automation_ran, mew_error = run_mew_automation_if_applicable(
|
||||
modlist_name=modlist_name,
|
||||
modlist_install_location=Path(install_dir),
|
||||
game_root=None,
|
||||
appid=app_id,
|
||||
ttw_installer_path=AutomatedPrefixService.get_ttw_installer_path(),
|
||||
progress_callback=print,
|
||||
manual_file_callback=None,
|
||||
confirmation_callback=_confirm_mew,
|
||||
)
|
||||
if automation_ran and not mew_error:
|
||||
print(f"{COLOR_INFO}MEW post-install automation completed.{COLOR_RESET}")
|
||||
if mew_error:
|
||||
print(f"{COLOR_WARNING}MEW automation encountered an error: {mew_error}{COLOR_RESET}")
|
||||
except Exception as e:
|
||||
logger.error("MEW post-install automation failed: %s", e, exc_info=True)
|
||||
print(f"{COLOR_WARNING}MEW automation could not be completed. Check logs for details.{COLOR_RESET}")
|
||||
|
||||
# JContainers
|
||||
try:
|
||||
from jackify.backend.handlers.modlist_fixup_handler import (
|
||||
|
||||
Reference in New Issue
Block a user