Update Fleet-maintained apps (#28282)
Automated ingestion of latest Fleet-maintained app data. Co-authored-by: jahzielv <19838370+jahzielv@users.noreply.github.com>
This commit is contained in:
co-authored by
jahzielv
parent
56866dc78e
commit
7c07007018
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "135.0.7049.85",
|
||||
"version": "135.0.7049.96",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.google.Chrome';"
|
||||
},
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "135.0.7049.85",
|
||||
"version": "135.0.7049.96",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM programs WHERE name = 'Google Chrome' AND publisher = 'Google LLC';"
|
||||
},
|
||||
"installer_url": "https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi",
|
||||
"install_script_ref": "8959087b",
|
||||
"uninstall_script_ref": "322fbd04",
|
||||
"uninstall_script_ref": "d820be68",
|
||||
"sha256": "no_check"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
"322fbd04": "$product_code = \"{138D2D03-6550-3989-85BA-178F9BBA2D6F}\"\n\n# Fleet uninstalls app using product code that's extracted on upload\nmsiexec /quiet /x $product_code\nExit $LASTEXITCODE\n",
|
||||
"8959087b": "$logFile = \"${env:TEMP}/fleet-install-software.log\"\n\ntry {\n\n$installProcess = Start-Process msiexec.exe `\n -ArgumentList \"/quiet /norestart /lv ${logFile} /i `\"${env:INSTALLER_PATH}`\"\" `\n -PassThru -Verb RunAs -Wait\n\nGet-Content $logFile -Tail 500\n\nExit $installProcess.ExitCode\n\n} catch {\n Write-Host \"Error: $_\"\n Exit 1\n}\n"
|
||||
"8959087b": "$logFile = \"${env:TEMP}/fleet-install-software.log\"\n\ntry {\n\n$installProcess = Start-Process msiexec.exe `\n -ArgumentList \"/quiet /norestart /lv ${logFile} /i `\"${env:INSTALLER_PATH}`\"\" `\n -PassThru -Verb RunAs -Wait\n\nGet-Content $logFile -Tail 500\n\nExit $installProcess.ExitCode\n\n} catch {\n Write-Host \"Error: $_\"\n Exit 1\n}\n",
|
||||
"d820be68": "$product_code = \"{7537FCCC-472F-38B2-93E7-05DD4F526C6D}\"\n\n# Fleet uninstalls app using product code that's extracted on upload\nmsiexec /quiet /x $product_code\nExit $LASTEXITCODE\n"
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "16.95.25040241",
|
||||
"version": "16.96.25041326",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.microsoft.Excel';"
|
||||
},
|
||||
"installer_url": "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Excel_16.95.25040241_Installer.pkg",
|
||||
"install_script_ref": "31a3153b",
|
||||
"installer_url": "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Excel_16.96.25041326_Installer.pkg",
|
||||
"install_script_ref": "553c4a28",
|
||||
"uninstall_script_ref": "6694909e",
|
||||
"sha256": "237a275c1b606af348e627ca01b38fdea769110c26c1b65b7a128f7e7a2b6d37"
|
||||
"sha256": "df40883d83d07f9f46a6fd88836d96cc22f22314792827fc7b2a2a11015c99e6"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
"31a3153b": "#!/bin/sh\n\n# variables\nAPPDIR=\"/Applications/\"\nTMPDIR=$(dirname \"$(realpath $INSTALLER_PATH)\")\n\n# install pkg files\n\nCHOICE_XML=$(mktemp /tmp/choice_xml_XXX)\n\ncat \u003c\u003c EOF \u003e \"$CHOICE_XML\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003carray\u003e\n \u003cdict\u003e\n \u003ckey\u003eattributeSetting\u003c/key\u003e\n \u003cinteger\u003e0\u003c/integer\u003e\n \u003ckey\u003echoiceAttribute\u003c/key\u003e\n \u003cstring\u003eselected\u003c/string\u003e\n \u003ckey\u003echoiceIdentifier\u003c/key\u003e\n \u003cstring\u003ecom.microsoft.autoupdate\u003c/string\u003e\n \u003c/dict\u003e\n\u003c/array\u003e\n\u003c/plist\u003e\n\nEOF\n\nsudo installer -pkg \"$TMPDIR\"/Microsoft_Excel_16.95.25040241_Installer.pkg -target / -applyChoiceChangesXML \"$CHOICE_XML\"\n\n",
|
||||
"553c4a28": "#!/bin/sh\n\n# variables\nAPPDIR=\"/Applications/\"\nTMPDIR=$(dirname \"$(realpath $INSTALLER_PATH)\")\n\n# install pkg files\n\nCHOICE_XML=$(mktemp /tmp/choice_xml_XXX)\n\ncat \u003c\u003c EOF \u003e \"$CHOICE_XML\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003carray\u003e\n \u003cdict\u003e\n \u003ckey\u003eattributeSetting\u003c/key\u003e\n \u003cinteger\u003e0\u003c/integer\u003e\n \u003ckey\u003echoiceAttribute\u003c/key\u003e\n \u003cstring\u003eselected\u003c/string\u003e\n \u003ckey\u003echoiceIdentifier\u003c/key\u003e\n \u003cstring\u003ecom.microsoft.autoupdate\u003c/string\u003e\n \u003c/dict\u003e\n\u003c/array\u003e\n\u003c/plist\u003e\n\nEOF\n\nsudo installer -pkg \"$TMPDIR\"/Microsoft_Excel_16.96.25041326_Installer.pkg -target / -applyChoiceChangesXML \"$CHOICE_XML\"\n\n",
|
||||
"6694909e": "#!/bin/sh\n\n# variables\nLOGGED_IN_USER=$(scutil \u003c\u003c\u003c \"show State:/Users/ConsoleUser\" | awk '/Name :/ { print $3 }')\n# functions\n\nquit_application() {\n local bundle_id=\"$1\"\n local timeout_duration=10\n\n # check if the application is running\n if ! osascript -e \"application id \\\"$bundle_id\\\" is running\" 2\u003e/dev/null; then\n return\n fi\n\n local console_user\n console_user=$(stat -f \"%Su\" /dev/console)\n if [[ $EUID -eq 0 \u0026\u0026 \"$console_user\" == \"root\" ]]; then\n echo \"Not logged into a non-root GUI; skipping quitting application ID '$bundle_id'.\"\n return\n fi\n\n echo \"Quitting application '$bundle_id'...\"\n\n # try to quit the application within the timeout period\n local quit_success=false\n SECONDS=0\n while (( SECONDS \u003c timeout_duration )); do\n if osascript -e \"tell application id \\\"$bundle_id\\\" to quit\" \u003e/dev/null 2\u003e\u00261; then\n if ! pgrep -f \"$bundle_id\" \u003e/dev/null 2\u003e\u00261; then\n echo \"Application '$bundle_id' quit successfully.\"\n quit_success=true\n break\n fi\n fi\n sleep 1\n done\n\n if [[ \"$quit_success\" = false ]]; then\n echo \"Application '$bundle_id' did not quit.\"\n fi\n}\n\n\nremove_launchctl_service() {\n local service=\"$1\"\n local booleans=(\"true\" \"false\")\n local plist_status\n local paths\n local should_sudo\n\n echo \"Removing launchctl service ${service}\"\n\n for should_sudo in \"${booleans[@]}\"; do\n plist_status=$(launchctl list \"${service}\" 2\u003e/dev/null)\n\n if [[ $plist_status == \\{* ]]; then\n if [[ $should_sudo == \"true\" ]]; then\n sudo launchctl remove \"${service}\"\n else\n launchctl remove \"${service}\"\n fi\n sleep 1\n fi\n\n paths=(\n \"/Library/LaunchAgents/${service}.plist\"\n \"/Library/LaunchDaemons/${service}.plist\"\n )\n\n # if not using sudo, prepend the home directory to the paths\n if [[ $should_sudo == \"false\" ]]; then\n for i in \"${!paths[@]}\"; do\n paths[i]=\"${HOME}${paths[i]}\"\n done\n fi\n\n for path in \"${paths[@]}\"; do\n if [[ -e \"$path\" ]]; then\n if [[ $should_sudo == \"true\" ]]; then\n sudo rm -f -- \"$path\"\n else\n rm -f -- \"$path\"\n fi\n fi\n done\n done\n}\n\ntrash() {\n local logged_in_user=\"$1\"\n local target_file=\"$2\"\n local timestamp=\"$(date +%Y-%m-%d-%s)\"\n local rand=\"$(jot -r 1 0 99999)\"\n\n # replace ~ with /Users/$logged_in_user\n if [[ \"$target_file\" == ~* ]]; then\n target_file=\"/Users/$logged_in_user${target_file:1}\"\n fi\n\n local trash=\"/Users/$logged_in_user/.Trash\"\n local file_name=\"$(basename \"${target_file}\")\"\n\n if [[ -e \"$target_file\" ]]; then\n echo \"removing $target_file.\"\n mv -f \"$target_file\" \"$trash/${file_name}_${timestamp}_${rand}\"\n else\n echo \"$target_file doesn't exist.\"\n fi\n}\n\nremove_launchctl_service 'com.microsoft.office.licensingV2.helper'\nquit_application 'com.microsoft.autoupdate2'\nsudo pkgutil --forget 'com.microsoft.package.Microsoft_Excel.app'\nsudo pkgutil --forget 'com.microsoft.pkg.licensing'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/com.microsoft.Excel'\ntrash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.excel.sfl*'\ntrash $LOGGED_IN_USER '~/Library/Caches/com.microsoft.Excel'\ntrash $LOGGED_IN_USER '~/Library/Containers/com.microsoft.Excel'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.microsoft.Excel.plist'\ntrash $LOGGED_IN_USER '~/Library/Saved Application State/com.microsoft.Excel.savedState'\ntrash $LOGGED_IN_USER '~/Library/Webkit/com.microsoft.Excel'\n"
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "16.95.25040241",
|
||||
"version": "16.96.25041326",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.microsoft.Word';"
|
||||
},
|
||||
"installer_url": "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Word_16.95.25040241_Installer.pkg",
|
||||
"install_script_ref": "9f5eae1d",
|
||||
"installer_url": "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Word_16.96.25041326_Installer.pkg",
|
||||
"install_script_ref": "3a40cd50",
|
||||
"uninstall_script_ref": "24415163",
|
||||
"sha256": "efb1fdd356bae6efffa7ee3fd8e4c767be418223d338d4bb5071c3216f1f2026"
|
||||
"sha256": "12031659488a5c58adcc716cd671d26552dcb2084a8341aa30cc8d60171ced8a"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
"24415163": "#!/bin/sh\n\n# variables\nLOGGED_IN_USER=$(scutil \u003c\u003c\u003c \"show State:/Users/ConsoleUser\" | awk '/Name :/ { print $3 }')\n# functions\n\nquit_application() {\n local bundle_id=\"$1\"\n local timeout_duration=10\n\n # check if the application is running\n if ! osascript -e \"application id \\\"$bundle_id\\\" is running\" 2\u003e/dev/null; then\n return\n fi\n\n local console_user\n console_user=$(stat -f \"%Su\" /dev/console)\n if [[ $EUID -eq 0 \u0026\u0026 \"$console_user\" == \"root\" ]]; then\n echo \"Not logged into a non-root GUI; skipping quitting application ID '$bundle_id'.\"\n return\n fi\n\n echo \"Quitting application '$bundle_id'...\"\n\n # try to quit the application within the timeout period\n local quit_success=false\n SECONDS=0\n while (( SECONDS \u003c timeout_duration )); do\n if osascript -e \"tell application id \\\"$bundle_id\\\" to quit\" \u003e/dev/null 2\u003e\u00261; then\n if ! pgrep -f \"$bundle_id\" \u003e/dev/null 2\u003e\u00261; then\n echo \"Application '$bundle_id' quit successfully.\"\n quit_success=true\n break\n fi\n fi\n sleep 1\n done\n\n if [[ \"$quit_success\" = false ]]; then\n echo \"Application '$bundle_id' did not quit.\"\n fi\n}\n\n\nremove_launchctl_service() {\n local service=\"$1\"\n local booleans=(\"true\" \"false\")\n local plist_status\n local paths\n local should_sudo\n\n echo \"Removing launchctl service ${service}\"\n\n for should_sudo in \"${booleans[@]}\"; do\n plist_status=$(launchctl list \"${service}\" 2\u003e/dev/null)\n\n if [[ $plist_status == \\{* ]]; then\n if [[ $should_sudo == \"true\" ]]; then\n sudo launchctl remove \"${service}\"\n else\n launchctl remove \"${service}\"\n fi\n sleep 1\n fi\n\n paths=(\n \"/Library/LaunchAgents/${service}.plist\"\n \"/Library/LaunchDaemons/${service}.plist\"\n )\n\n # if not using sudo, prepend the home directory to the paths\n if [[ $should_sudo == \"false\" ]]; then\n for i in \"${!paths[@]}\"; do\n paths[i]=\"${HOME}${paths[i]}\"\n done\n fi\n\n for path in \"${paths[@]}\"; do\n if [[ -e \"$path\" ]]; then\n if [[ $should_sudo == \"true\" ]]; then\n sudo rm -f -- \"$path\"\n else\n rm -f -- \"$path\"\n fi\n fi\n done\n done\n}\n\ntrash() {\n local logged_in_user=\"$1\"\n local target_file=\"$2\"\n local timestamp=\"$(date +%Y-%m-%d-%s)\"\n local rand=\"$(jot -r 1 0 99999)\"\n\n # replace ~ with /Users/$logged_in_user\n if [[ \"$target_file\" == ~* ]]; then\n target_file=\"/Users/$logged_in_user${target_file:1}\"\n fi\n\n local trash=\"/Users/$logged_in_user/.Trash\"\n local file_name=\"$(basename \"${target_file}\")\"\n\n if [[ -e \"$target_file\" ]]; then\n echo \"removing $target_file.\"\n mv -f \"$target_file\" \"$trash/${file_name}_${timestamp}_${rand}\"\n else\n echo \"$target_file doesn't exist.\"\n fi\n}\n\nremove_launchctl_service 'com.microsoft.office.licensingV2.helper'\nquit_application 'com.microsoft.autoupdate2'\nsudo pkgutil --forget 'com.microsoft.package.Microsoft_Word.app'\nsudo pkgutil --forget 'com.microsoft.pkg.licensing'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/com.microsoft.Word'\ntrash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.word.sfl*'\ntrash $LOGGED_IN_USER '~/Library/Application Support/CrashReporter/Microsoft Word_*.plist'\ntrash $LOGGED_IN_USER '~/Library/Containers/com.microsoft.Word'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.microsoft.Word.plist'\ntrash $LOGGED_IN_USER '~/Library/Saved Application State/com.microsoft.Word.savedState'\n",
|
||||
"9f5eae1d": "#!/bin/sh\n\n# variables\nAPPDIR=\"/Applications/\"\nTMPDIR=$(dirname \"$(realpath $INSTALLER_PATH)\")\n\n# install pkg files\n\nCHOICE_XML=$(mktemp /tmp/choice_xml_XXX)\n\ncat \u003c\u003c EOF \u003e \"$CHOICE_XML\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003carray\u003e\n \u003cdict\u003e\n \u003ckey\u003eattributeSetting\u003c/key\u003e\n \u003cinteger\u003e0\u003c/integer\u003e\n \u003ckey\u003echoiceAttribute\u003c/key\u003e\n \u003cstring\u003eselected\u003c/string\u003e\n \u003ckey\u003echoiceIdentifier\u003c/key\u003e\n \u003cstring\u003ecom.microsoft.autoupdate\u003c/string\u003e\n \u003c/dict\u003e\n\u003c/array\u003e\n\u003c/plist\u003e\n\nEOF\n\nsudo installer -pkg \"$TMPDIR\"/Microsoft_Word_16.95.25040241_Installer.pkg -target / -applyChoiceChangesXML \"$CHOICE_XML\"\n\n"
|
||||
"3a40cd50": "#!/bin/sh\n\n# variables\nAPPDIR=\"/Applications/\"\nTMPDIR=$(dirname \"$(realpath $INSTALLER_PATH)\")\n\n# install pkg files\n\nCHOICE_XML=$(mktemp /tmp/choice_xml_XXX)\n\ncat \u003c\u003c EOF \u003e \"$CHOICE_XML\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003carray\u003e\n \u003cdict\u003e\n \u003ckey\u003eattributeSetting\u003c/key\u003e\n \u003cinteger\u003e0\u003c/integer\u003e\n \u003ckey\u003echoiceAttribute\u003c/key\u003e\n \u003cstring\u003eselected\u003c/string\u003e\n \u003ckey\u003echoiceIdentifier\u003c/key\u003e\n \u003cstring\u003ecom.microsoft.autoupdate\u003c/string\u003e\n \u003c/dict\u003e\n\u003c/array\u003e\n\u003c/plist\u003e\n\nEOF\n\nsudo installer -pkg \"$TMPDIR\"/Microsoft_Word_16.96.25041326_Installer.pkg -target / -applyChoiceChangesXML \"$CHOICE_XML\"\n\n"
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "4.8.4",
|
||||
"version": "4.8.7",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'notion.id';"
|
||||
},
|
||||
"installer_url": "https://desktop-release.notion-static.com/Notion-4.8.4-arm64.dmg",
|
||||
"installer_url": "https://desktop-release.notion-static.com/Notion-4.8.7-arm64.dmg",
|
||||
"install_script_ref": "11cbfa59",
|
||||
"uninstall_script_ref": "21cd1000",
|
||||
"sha256": "629b6f4ce8a8512ee1b3362c9947595b667bb219b7c1dadca08d6c34b01ebd2e"
|
||||
"sha256": "a0fe8d7d3bb200f40e07cfafa1f7409e73838c1bb7d530d5f2564b9061a643df"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "11.40.4",
|
||||
"version": "11.41.2",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.postmanlabs.mac';"
|
||||
},
|
||||
"installer_url": "https://dl.pstmn.io/download/version/11.40.4/osx_arm64",
|
||||
"installer_url": "https://dl.pstmn.io/download/version/11.41.2/osx_arm64",
|
||||
"install_script_ref": "1809f0b2",
|
||||
"uninstall_script_ref": "15e9f11c",
|
||||
"sha256": "b31336314f20d5495a52ef4c03e80c9982de8491bf8aaf9d66a3317451f07b02"
|
||||
"sha256": "899ff9878ee0b23bcdb6807592d0feb293ca51b572016363320b4273922f2c5c"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "2.25.8.76",
|
||||
"version": "2.25.10.72",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'net.whatsapp.WhatsApp';"
|
||||
},
|
||||
"installer_url": "https://web.whatsapp.com/desktop/mac_native/release/?version=2.25.8.76\u0026extension=zip\u0026configuration=Release\u0026branch=relbranch",
|
||||
"installer_url": "https://web.whatsapp.com/desktop/mac_native/release/?version=2.25.10.72\u0026extension=zip\u0026configuration=Release\u0026branch=relbranch",
|
||||
"install_script_ref": "855416a1",
|
||||
"uninstall_script_ref": "1601899d",
|
||||
"sha256": "1c1b75467aad96828b6acd44c6aea0f0be85e832f6c8aee765c078362d0ece3b"
|
||||
"sha256": "396cd3ab43dec85b105dbc83ca623c7a26490af261acf7183664330b2f25b428"
|
||||
}
|
||||
],
|
||||
"refs": {
|
||||
|
||||
Reference in New Issue
Block a user