Skip to content

Commit

Permalink
Added support for macOS 13.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonelo committed Aug 18, 2023
1 parent 3ee3232 commit d713986
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions osxapp_vers
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# osxapp_vers 1.12
# osxapp_vers 1.13
# Get product name, product version and build version of [Mac] OS X
# from "Install*OS X*.app", "Install macOS *.app" or "Mac OS X install DVD"
#
# Copyright 2015-2022 Johann N. Loefflmann
# Copyright 2015-2023 Johann N. Loefflmann
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -164,7 +164,12 @@ else
# sudo chroot "/Volumes/BaseSystem.$$" /usr/bin/sw_vers

if [ $CONTCODE -eq 11 ]; then
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/SFR/com_apple_MobileAsset_SFRSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
if [ -d "/Volumes/BaseSystem.$$/SFR/" ]; then
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/SFR/com_apple_MobileAsset_SFRSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
# e.g. macOS 13.5.1
else
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/com_apple_MobileAsset_MacSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
fi
CONTCODE=1
else
XMLCONTENT=$(<"/Volumes/BaseSystem.$$/System/Library/CoreServices/SystemVersion.plist")
Expand Down

0 comments on commit d713986

Please sign in to comment.