From 522fc7ff40fbd17839bf4714e103bc52fa232f59 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Wed, 20 Aug 2025 13:55:28 -0700 Subject: [PATCH] Workaround for issue with installer in macOS 15.6 --- installinstallmacos.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index c757202..3b70da7 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -239,7 +239,12 @@ def install_product(dist_path, target_vol): # set CM_BUILD env var to make Installer bypass eligibilty checks # when installing packages (for machine-specific OS builds) os.environ["CM_BUILD"] = "CM_BUILD" - cmd = ['/usr/sbin/installer', '-pkg', dist_path, '-target', target_vol] + #cmd = ['/usr/sbin/installer', '-pkg', dist_path, '-target', target_vol] + # a hack to work around a change in macOS 15.6+ since installing a .dist + # file no longer works + dist_dir = os.path.dirname(dist_path) + install_asst_pkg = os.path.join(dist_dir, "InstallAssistant.pkg") + cmd = ['/usr/sbin/installer', '-pkg', install_asst_pkg, '-target', target_vol] try: subprocess.check_call(cmd) except subprocess.CalledProcessError as err: