We already supported the postinstall script. This just adds support for the new
preinstall script.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/020f74a05f2bfde21ea239cea02e53671c6ae506
commit 020f74a05f2bfde21ea239cea02e53671c6ae506
Author: Avi Drissman <avi@chromium.org>
Date: Fri Feb 6 10:54:22 2026 -0800
Harden the pkg with a pre-install script
If Installer.app finds an app with the correct name but an incorrect
bundle ID in the target installation directory, it misbehaves. Add a
pre-install script to the pkg to fail early if that is the case.
Fixed: 481590122
Change-Id: I47017e17d1506e0e0a17083842d3e4201710e127
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7544462
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1580983}