Skip to content

Commit

Permalink
Update MSOfficeMacURLandUpdateInfoProvider.py
Browse files Browse the repository at this point in the history
Adds `bundle_id` for some titles, which are later then added to the titles installs array.
  • Loading branch information
macmule committed Dec 4, 2024
1 parent 69ae64d commit e5adee3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MSOfficeUpdates/MSOfficeMacURLandUpdateInfoProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,23 @@
PROD_DICT = {
"Excel2016": {"id": "XCEL15", "path": "/Applications/Microsoft Excel.app"},
"Excel2019": {
"bundle_id": "com.microsoft.Excel",
"id": "XCEL2019",
"path": "/Applications/Microsoft Excel.app",
"minimum_os": "10.12",
"minimum_update_version": "16.17",
},
"OneNote2016": {"id": "ONMC15", "path": "/Applications/Microsoft OneNote.app"},
"OneNote2019": {
"bundle_id": "com.microsoft.onenote.mac",
"id": "ONMC2019",
"path": "/Applications/Microsoft OneNote.app",
"minimum_os": "10.12",
"minimum_update_version": "16.17",
},
"Outlook2016": {"id": "OPIM15", "path": "/Applications/Microsoft Outlook.app"},
"Outlook2019": {
"bundle_id": "com.microsoft.Outlook",
"id": "OPIM2019",
"path": "/Applications/Microsoft Outlook.app",
"minimum_os": "10.12",
Expand All @@ -66,13 +69,15 @@
"path": "/Applications/Microsoft PowerPoint.app",
},
"PowerPoint2019": {
"bundle_id": "com.microsoft.PowerPoint",
"id": "PPT32019",
"path": "/Applications/Microsoft PowerPoint.app",
"minimum_os": "10.12",
"minimum_update_version": "16.17",
},
"Word2016": {"id": "MSWD15", "path": "/Applications/Microsoft Word.app"},
"Word2019": {
"bundle_id": "com.microsoft.Word",
"id": "MSWD2019",
"path": "/Applications/Microsoft Word.app",
"minimum_os": "10.12",
Expand Down Expand Up @@ -357,6 +362,13 @@ def get_installer_info(self):
if installs_items:
pkginfo["installs"] = installs_items

# If bundle_id is defined
if PROD_DICT[self.env["product"]].get("bundle_id"):
# Add to pkginfo
pkginfo["installs"][0]["CFBundleIdentifier"] = PROD_DICT[self.env["product"]].get(
"bundle_id"
)

# Extra work to do if this is a delta updater
if self.env["version"] == "latest-delta":
try:
Expand Down

0 comments on commit e5adee3

Please sign in to comment.