gh-137450: macOS installer shell path management improvements (#137451)

Separate the installer `Shell profile updater` postinstall script from the `Update Shell Profile.command` to enable more robust error handling.
This commit is contained in:
Ned Deily 2025-08-06 07:21:30 -04:00 committed by GitHub
parent 247dab27fd
commit 781eb1a688
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 192 additions and 85 deletions

View file

@ -1747,7 +1747,7 @@ def main():
fn = os.path.join(folder, "ReadMe.rtf")
patchFile("resources/ReadMe.rtf", fn)
fn = os.path.join(folder, "Update Shell Profile.command")
patchScript("scripts/postflight.patch-profile", fn)
patchScript("resources/update_shell_profile.command", fn)
fn = os.path.join(folder, "Install Certificates.command")
patchScript("resources/install_certificates.command", fn)
os.chmod(folder, STAT_0o755)