Update Webex macOS install script and refs - #47445
Conversation
Add a new macOS installer script (ee/maintained-apps/inputs/homebrew/scripts/webex_install.sh) that handles dmg extraction, quitting/relaunching the app, backing up existing /Applications/Webex.app, and removing stale Webex upgrade bundles. Update the homebrew input (webex.json) to reference the new install script path and update the darwin output (ee/maintained-apps/outputs/webex/darwin.json) to point to the new install_script_ref (d105863f) which contains the new script content.
Script Diff Resultsee/maintained-apps/outputs/webex/darwin.json=== Install // aed481d4 -> d105863f ===
--- /tmp/old.O0LN4R 2026-06-11 18:14:22.110725284 +0000
+++ /tmp/new.5ZKi9Q 2026-06-11 18:14:22.110725284 +0000
@@ -94,6 +94,24 @@
}
+remove_stale_upgrade_bundles() {
+ # Webex's own auto-updater stages downloaded updates under
+ # "Cisco Spark/Webexteams_upgrades_*" (one dir per architecture) and leaves
+ # older, fully formed Webex.app bundles behind after applying them. osquery's
+ # apps table indexes those staged bundles by their (old) bundle_short_version
+ # and bundle_identifier ('Cisco-Systems.Spark'), so version-based patch
+ # policies keep reporting the host as out of date even after the app in
+ # /Applications has been updated. Removing them is safe: they are cached,
+ # already-applied updates that Webex re-downloads as needed, and Webex only
+ # ever stages versions at or newer than what is installed.
+ local home
+ for home in /Users/*; do
+ [ -d "$home" ] || continue
+ rm -rf "$home/Library/Application Support/Cisco Spark/Webexteams_upgrades_"*
+ done
+}
+
+
# extract contents
MOUNT_POINT=$(mktemp -d /tmp/dmg_mount_XXXXXX)
yes | hdiutil attach -plist -nobrowse -readonly -mountpoint "$MOUNT_POINT" "$INSTALLER_PATH" || exit 1
@@ -105,4 +123,5 @@
sudo mv "$APPDIR/Webex.app" "$TMPDIR/Webex.app.bkp"
fi
sudo cp -R "$TMPDIR/Webex.app" "$APPDIR"
+remove_stale_upgrade_bundles
relaunch_application 'Cisco-Systems.Spark'
=== Uninstall Script (no changes) === |
There was a problem hiding this comment.
Pull request overview
This PR updates the Webex macOS Fleet-maintained app (Homebrew) to use a custom install script that removes stale Webex auto-updater “upgrade bundle” directories under user home folders, helping prevent osquery/Fleet patch policies from reading outdated version info after an upgrade.
Changes:
- Added a custom Webex DMG install script that quits/relaunches Webex, backs up
/Applications/Webex.app, and removes staleWebexteams_upgrades_*bundles under/Users/*. - Updated the Homebrew input manifest to reference the new
install_script_path. - Updated the generated Webex macOS output manifest to point to the new
install_script_ref.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ee/maintained-apps/outputs/webex/darwin.json | Updates install_script_ref and embeds the new install script contents under refs. |
| ee/maintained-apps/inputs/homebrew/webex.json | Points the Webex Homebrew input to the new custom install script via install_script_path. |
| ee/maintained-apps/inputs/homebrew/scripts/webex_install.sh | New custom installer script that mounts/extracts the DMG, installs Webex.app, and removes stale upgrade bundles. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| MOUNT_POINT=$(mktemp -d /tmp/dmg_mount_XXXXXX) | ||
| yes | hdiutil attach -plist -nobrowse -readonly -mountpoint "$MOUNT_POINT" "$INSTALLER_PATH" || exit 1 | ||
| sudo cp -R "$MOUNT_POINT"/* "$TMPDIR" | ||
| hdiutil detach "$MOUNT_POINT" || true | ||
| # copy to the applications folder |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR adds a macOS Webex installer script that addresses stale cache causing false version-mismatch errors. The script defines three helper functions: Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add a new macOS installer script (ee/maintained-apps/inputs/homebrew/scripts/webex_install.sh) that handles dmg extraction, quitting/relaunching the app, backing up existing /Applications/Webex.app, and removing stale Webex upgrade bundles. Update the homebrew input (webex.json) to reference the new install script path and update the darwin output (ee/maintained-apps/outputs/webex/darwin.json) to point to the new install_script_ref (d105863f) which contains the new script content.
Related issue: Resolves #47440
Summary by CodeRabbit