mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #42492 Includes changes from running ingestions on all FMAs # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. - [ ] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters. - [ ] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [x] Added/updated automated tests - [ ] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [x] QA'd all new/changed functionality manually
22 lines
5.8 KiB
JSON
22 lines
5.8 KiB
JSON
{
|
|
"versions": [
|
|
{
|
|
"version": "6.8.1.865",
|
|
"queries": {
|
|
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.adobe.acc.AdobeCreativeCloud';",
|
|
"patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE bundle_identifier = 'com.adobe.acc.AdobeCreativeCloud' AND version_compare(bundle_short_version, '6.8.1.865') < 0);"
|
|
},
|
|
"installer_url": "https://ccmdls.adobe.com/AdobeProducts/StandaloneBuilds/ACCC/ESD/6.8.1/865/macarm64/ACCCx6_8_1_865.dmg",
|
|
"install_script_ref": "1ad8f626",
|
|
"uninstall_script_ref": "0f729ae8",
|
|
"sha256": "bedbaf48288b5d09cd86450f13d91b311411b4e535eee414c9f50c161f3765ec",
|
|
"default_categories": [
|
|
"Productivity"
|
|
]
|
|
}
|
|
],
|
|
"refs": {
|
|
"0f729ae8": "#!/bin/sh\n\nquit_app() {\n b=\"$1\"\n # try a friendly quit if a GUI user is active\n if osascript -e \"application id \\\"$b\\\" is running\" >/dev/null 2>&1; then\n cu=\"$(stat -f \"%Su\" /dev/console 2>/dev/null || true)\"\n if [ \"$(id -u)\" -ne 0 ] || [ \"$cu\" != \"root\" ]; then\n i=0\n while [ \"$i\" -lt 10 ]; do\n osascript -e \"tell application id \\\"$b\\\" to quit\" >/dev/null 2>&1 || true\n if ! pgrep -f \"$b\" >/dev/null 2>&1; then break; fi\n i=$((i+1))\n sleep 1\n done\n fi\n fi\n # hard stop fallback\n pkill -f \"$b\" >/dev/null 2>&1 || true\n}\n\nBUNDLE_ID=\"com.adobe.acc.AdobeCreativeCloud\"\nquit_app \"$BUNDLE_ID\"\n\n# Try the official Adobe Creative Cloud Uninstaller.app first\nUNINST_APP=\"\"\nfor p in \\\n \"/Applications/Utilities/Adobe Creative Cloud/Utils/Creative Cloud Uninstaller.app\" \\\n \"/Applications/Adobe Creative Cloud/Utils/Creative Cloud Uninstaller.app\" \\\n \"/Applications/Utilities/Adobe Creative Cloud/Creative Cloud Uninstaller.app\"\ndo\n [ -d \"$p\" ] && { UNINST_APP=\"$p\"; break; }\ndone\n[ -z \"$UNINST_APP\" ] && UNINST_APP=\"$(/usr/bin/find /Applications /Applications/Utilities -maxdepth 5 -type d -iname '*creative*cloud*uninstaller*.app' -print -quit 2>/dev/null)\"\n\nif [ -n \"$UNINST_APP\" ] && [ -d \"$UNINST_APP\" ]; then\n BIN=\"$(/usr/bin/find \"$UNINST_APP/Contents/MacOS\" -maxdepth 1 -type f -perm -111 -print -quit 2>/dev/null)\"\n [ -n \"$BIN\" ] && { \"$BIN\" -uninstall --force >/dev/null 2>&1 || \"$BIN\" >/dev/null 2>&1 || true; }\nfi\n\n# Remove app bundles\nrm -rf \"/Applications/Adobe Creative Cloud.app\" \\\n \"/Applications/Creative Cloud.app\" \\\n \"/Applications/Utilities/Adobe Creative Cloud/ACC/Creative Cloud.app\" >/dev/null 2>&1 || true\n\n# System support files\nrm -rf \"/Library/Application Support/Adobe/Creative Cloud\" \\\n \"/Library/Application Support/Adobe/Adobe Desktop Common\" >/dev/null 2>&1 || true\nrm -f \"/Library/Preferences/com.adobe.acc.AdobeCreativeCloud.plist\" >/dev/null 2>&1 || true\nrm -f /var/db/receipts/com.adobe.acc*.bom /var/db/receipts/com.adobe.acc*.plist >/dev/null 2>&1 || true\n\n# Per-user cleanup\nfor udir in /Users/* /var/root; do\n [ -d \"$udir/Library\" ] || continue\n rm -rf \"$udir/Library/Application Support/Adobe/Creative Cloud\" \\\n \"$udir/Library/Caches/com.adobe.acc.AdobeCreativeCloud\" \\\n \"$udir/Library/Logs/Adobe/Creative Cloud\" >/dev/null 2>&1 || true\n rm -f \"$udir/Library/Preferences/com.adobe.acc.AdobeCreativeCloud.plist\" >/dev/null 2>&1 || true\ndone\n\necho \"adobe creative cloud uninstalled\"\n",
|
|
"1ad8f626": "#!/bin/sh\n\nquit_application() {\n bundle_id=\"$1\"\n timeout_duration=10\n if ! osascript -e \"application id \\\"$bundle_id\\\" is running\" >/dev/null 2>&1; then return; fi\n console_user=\"$(stat -f \"%Su\" /dev/console 2>/dev/null || true)\"\n if [ \"$(id -u)\" -eq 0 ] && [ \"$console_user\" = \"root\" ]; then\n echo \"Skipping quit for '$bundle_id'.\"\n return\n fi\n echo \"Quitting '$bundle_id'...\"\n i=0\n while [ \"$i\" -lt \"$timeout_duration\" ]; do\n osascript -e \"tell application id \\\"$bundle_id\\\" to quit\" >/dev/null 2>&1 || true\n if ! pgrep -f \"$bundle_id\" >/dev/null 2>&1; then\n echo \"'$bundle_id' quit successfully.\"\n return\n fi\n i=$((i+1))\n sleep 1\n done\n echo \"'$bundle_id' did not quit.\"\n}\n\n[ -n \"$INSTALLER_PATH\" ] && [ -f \"$INSTALLER_PATH\" ] || { echo \"missing installer\"; exit 1; }\n\nquit_application \"com.adobe.acc.AdobeCreativeCloud\"\n\n# Mount to a known path to avoid space-in-volume issues\nMOUNT_POINT=\"$(mktemp -d \"/tmp/adobe_cc.XXXXXX\")\"\nif ! hdiutil attach -nobrowse -readonly -mountpoint \"$MOUNT_POINT\" \"$INSTALLER_PATH\" >/dev/null 2>&1; then\n rmdir \"$MOUNT_POINT\" >/dev/null 2>&1 || true\n echo \"failed to mount dmg\"\n exit 1\nfi\n\n# Find the installer app (handles Install.app or variants like *Install*.app)\nINSTALL_APP=\"$(/usr/bin/find \"$MOUNT_POINT\" -maxdepth 5 -type d \\( -name \"Install.app\" -o -iname \"*Install*.app\" \\) -print -quit)\"\n\nif [ -z \"$INSTALL_APP\" ] || [ ! -d \"$INSTALL_APP\" ]; then\n hdiutil detach \"$MOUNT_POINT\" >/dev/null 2>&1 || true\n rmdir \"$MOUNT_POINT\" >/dev/null 2>&1 || true\n echo \"Install.app not found\"\n exit 1\nfi\n\n# Prefer Contents/MacOS/Install, fall back to first executable in MacOS\nBIN=\"$INSTALL_APP/Contents/MacOS/Install\"\nif [ ! -x \"$BIN\" ]; then\n BIN=\"$(/usr/bin/find \"$INSTALL_APP/Contents/MacOS\" -type f -perm +111 -print -quit 2>/dev/null)\"\nfi\n[ -n \"$BIN\" ] && [ -x \"$BIN\" ] || { hdiutil detach \"$MOUNT_POINT\" >/dev/null 2>&1 || true; rmdir \"$MOUNT_POINT\" >/dev/null 2>&1 || true; echo \"installer binary not found\"; exit 1; }\n\n# Try silent, fall back to normal if needed\n\"$BIN\" --mode=silent >/dev/null 2>&1 || \"$BIN\" >/dev/null 2>&1\n\nhdiutil detach \"$MOUNT_POINT\" >/dev/null 2>&1 || true\nrmdir \"$MOUNT_POINT\" >/dev/null 2>&1 || true\n\necho \"adobe creative cloud installed\"\n"
|
|
}
|
|
}
|